summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures/convert.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-02-24 02:45:47 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-02-27 00:08:27 +0100
commit0ad3c031f4f0e1db16e271ed1329e2c4bad33e10 (patch)
treeaaa115aafde8dbd657453317e698d62c72d07df8 /src/video_core/textures/convert.h
parentdecoders: Minor style changes (diff)
downloadyuzu-0ad3c031f4f0e1db16e271ed1329e2c4bad33e10.tar
yuzu-0ad3c031f4f0e1db16e271ed1329e2c4bad33e10.tar.gz
yuzu-0ad3c031f4f0e1db16e271ed1329e2c4bad33e10.tar.bz2
yuzu-0ad3c031f4f0e1db16e271ed1329e2c4bad33e10.tar.lz
yuzu-0ad3c031f4f0e1db16e271ed1329e2c4bad33e10.tar.xz
yuzu-0ad3c031f4f0e1db16e271ed1329e2c4bad33e10.tar.zst
yuzu-0ad3c031f4f0e1db16e271ed1329e2c4bad33e10.zip
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