summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/TextureCache.h
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2016-12-09 22:23:07 +1000
committerStenzek <stenzek@gmail.com>2017-04-01 12:32:57 +1000
commit739aced97c954397a1d2a50fd75143a45c3759c5 (patch)
tree06d185463328a27e84f9ec6058611849b1b66d43 /Source/Core/VideoBackends/Vulkan/TextureCache.h
parent5fbc63fbcf15e385f5ff9c4cde16e8c4bdb816c2 (diff)
Vulkan: Implement compute-shader based GPU texture decoding
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/TextureCache.h')
-rw-r--r--Source/Core/VideoBackends/Vulkan/TextureCache.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/TextureCache.h b/Source/Core/VideoBackends/Vulkan/TextureCache.h
index f014492d7b..b433d7d9e0 100644
--- a/Source/Core/VideoBackends/Vulkan/TextureCache.h
+++ b/Source/Core/VideoBackends/Vulkan/TextureCache.h
@@ -66,6 +66,13 @@ public:
void CopyRectangleFromTexture(TCacheEntry* dst_texture, const MathUtil::Rectangle<int>& dst_rect,
Texture2D* src_texture, const MathUtil::Rectangle<int>& src_rect);
+ bool SupportsGPUTextureDecode(TextureFormat format, TlutFormat palette_format) override;
+
+ void DecodeTextureOnGPU(TCacheEntryBase* entry, u32 dst_level, const u8* data, size_t data_size,
+ TextureFormat format, u32 width, u32 height, u32 aligned_width,
+ u32 aligned_height, u32 row_stride, const u8* palette,
+ TlutFormat palette_format) override;
+
private:
bool CreateRenderPasses();