summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-03-16 01:24:53 +0100
committerGitHub <noreply@github.com>2020-03-16 01:24:53 +0100
commit7cc46a6faae50080e96a5ba5e8e0101e12573de8 (patch)
tree1811a5ff13e92377db955f1483d897a4e37d15ad /src/video_core/texture_cache
parentMerge pull request #3502 from namkazt/patch-3 (diff)
parentvideo_core: Implement RGBA16_SNORM (diff)
downloadyuzu-7cc46a6faae50080e96a5ba5e8e0101e12573de8.tar
yuzu-7cc46a6faae50080e96a5ba5e8e0101e12573de8.tar.gz
yuzu-7cc46a6faae50080e96a5ba5e8e0101e12573de8.tar.bz2
yuzu-7cc46a6faae50080e96a5ba5e8e0101e12573de8.tar.lz
yuzu-7cc46a6faae50080e96a5ba5e8e0101e12573de8.tar.xz
yuzu-7cc46a6faae50080e96a5ba5e8e0101e12573de8.tar.zst
yuzu-7cc46a6faae50080e96a5ba5e8e0101e12573de8.zip
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r--src/video_core/texture_cache/format_lookup_table.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/format_lookup_table.cpp b/src/video_core/texture_cache/format_lookup_table.cpp
index cc3ad8417..e151c26c4 100644
--- a/src/video_core/texture_cache/format_lookup_table.cpp
+++ b/src/video_core/texture_cache/format_lookup_table.cpp
@@ -41,7 +41,7 @@ struct Table {
ComponentType alpha_component;
bool is_srgb;
};
-constexpr std::array<Table, 75> DefinitionTable = {{
+constexpr std::array<Table, 76> DefinitionTable = {{
{TextureFormat::A8R8G8B8, C, UNORM, UNORM, UNORM, UNORM, PixelFormat::ABGR8U},
{TextureFormat::A8R8G8B8, C, SNORM, SNORM, SNORM, SNORM, PixelFormat::ABGR8S},
{TextureFormat::A8R8G8B8, C, UINT, UINT, UINT, UINT, PixelFormat::ABGR8UI},
@@ -61,6 +61,7 @@ constexpr std::array<Table, 75> DefinitionTable = {{
{TextureFormat::G8R8, C, UNORM, UNORM, UNORM, UNORM, PixelFormat::RG8U},
{TextureFormat::G8R8, C, SNORM, SNORM, SNORM, SNORM, PixelFormat::RG8S},
+ {TextureFormat::R16_G16_B16_A16, C, SNORM, SNORM, SNORM, SNORM, PixelFormat::RGBA16S},
{TextureFormat::R16_G16_B16_A16, C, UNORM, UNORM, UNORM, UNORM, PixelFormat::RGBA16U},
{TextureFormat::R16_G16_B16_A16, C, FLOAT, FLOAT, FLOAT, FLOAT, PixelFormat::RGBA16F},
{TextureFormat::R16_G16_B16_A16, C, UINT, UINT, UINT, UINT, PixelFormat::RGBA16UI},