aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/textures/decoders.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-03-19 18:00:29 -0500
committerSubv <subv2112@gmail.com>2018-03-24 11:30:56 -0500
commit71ebc3e90da9882139d2a5695ca1ed59ea77e94f (patch)
tree48139f0812ee19b69c51db347d4cc4acb23f948b /src/video_core/textures/decoders.h
parent46945b5c962e680d8fe963bbff9663f44c2a3ab2 (diff)
GPU: Preliminary work for texture decoding.
Diffstat (limited to 'src/video_core/textures/decoders.h')
-rw-r--r--src/video_core/textures/decoders.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/video_core/textures/decoders.h b/src/video_core/textures/decoders.h
new file mode 100644
index 000000000..e0d55600e
--- /dev/null
+++ b/src/video_core/textures/decoders.h
@@ -0,0 +1,20 @@
+// Copyright 2018 yuzu Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include <vector>
+#include "common/common_types.h"
+#include "video_core/textures/texture.h"
+
+namespace Tegra {
+namespace Texture {
+
+/**
+ * Decodes a swizzled texture into a RGBA8888 texture.
+ */
+std::vector<u8> DecodeTexture(VAddr address, TextureFormat format, u32 width, u32 height);
+
+} // namespace Texture
+} // namespace Tegra