aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/textures/convert.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-06 21:56:20 -0500
committerGitHub <noreply@github.com>2019-03-06 21:56:20 -0500
commit076c76f4e41602f94c06e23f5d1f1ff1cddca95b (patch)
treeb24cdf1f99ae12647dab27acec7fd0e00efdf506 /src/video_core/textures/convert.h
parented0bdcc6385f8984b07780a7b2071696c4829466 (diff)
parent0ad3c031f4f0e1db16e271ed1329e2c4bad33e10 (diff)
Merge pull request #2149 from ReinUsesLisp/decoders-style
gl_rasterizer_cache: Move format conversion functions to their own file
Diffstat (limited to 'src/video_core/textures/convert.h')
-rw-r--r--src/video_core/textures/convert.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/video_core/textures/convert.h b/src/video_core/textures/convert.h
new file mode 100644
index 000000000..07cd8b5da
--- /dev/null
+++ b/src/video_core/textures/convert.h
@@ -0,0 +1,18 @@
+// Copyright 2019 yuzu Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "common/common_types.h"
+#include "video_core/surface.h"
+
+namespace Tegra::Texture {
+
+void ConvertFromGuestToHost(u8* data, VideoCore::Surface::PixelFormat pixel_format, u32 width,
+ u32 height, u32 depth, bool convert_astc, bool convert_s8z24);
+
+void ConvertFromHostToGuest(u8* data, VideoCore::Surface::PixelFormat pixel_format, u32 width,
+ u32 height, u32 depth, bool convert_astc, bool convert_s8z24);
+
+} // namespace Tegra::Texture \ No newline at end of file