summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures/decoders.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-03-20 00:00:29 +0100
committerSubv <subv2112@gmail.com>2018-03-24 17:30:56 +0100
commit71ebc3e90da9882139d2a5695ca1ed59ea77e94f (patch)
tree48139f0812ee19b69c51db347d4cc4acb23f948b /src/video_core/textures/decoders.h
parentMerge pull request #275 from MerryMage/addticks-dynarmic (diff)
downloadyuzu-71ebc3e90da9882139d2a5695ca1ed59ea77e94f.tar
yuzu-71ebc3e90da9882139d2a5695ca1ed59ea77e94f.tar.gz
yuzu-71ebc3e90da9882139d2a5695ca1ed59ea77e94f.tar.bz2
yuzu-71ebc3e90da9882139d2a5695ca1ed59ea77e94f.tar.lz
yuzu-71ebc3e90da9882139d2a5695ca1ed59ea77e94f.tar.xz
yuzu-71ebc3e90da9882139d2a5695ca1ed59ea77e94f.tar.zst
yuzu-71ebc3e90da9882139d2a5695ca1ed59ea77e94f.zip
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