summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-06-30 21:23:13 +0200
committerSubv <subv2112@gmail.com>2018-06-30 21:23:13 +0200
commitc0e2d5275814e6d3fe15d1b8abb0f057c0e5d155 (patch)
tree9fd9e83b437c5103fe4095d09dc111c91d95f221 /src/video_core/textures
parentGLCache: Specify the component type along the texture type in the format tuple. (diff)
downloadyuzu-c0e2d5275814e6d3fe15d1b8abb0f057c0e5d155.tar
yuzu-c0e2d5275814e6d3fe15d1b8abb0f057c0e5d155.tar.gz
yuzu-c0e2d5275814e6d3fe15d1b8abb0f057c0e5d155.tar.bz2
yuzu-c0e2d5275814e6d3fe15d1b8abb0f057c0e5d155.tar.lz
yuzu-c0e2d5275814e6d3fe15d1b8abb0f057c0e5d155.tar.xz
yuzu-c0e2d5275814e6d3fe15d1b8abb0f057c0e5d155.tar.zst
yuzu-c0e2d5275814e6d3fe15d1b8abb0f057c0e5d155.zip
Diffstat (limited to 'src/video_core/textures')
-rw-r--r--src/video_core/textures/decoders.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/textures/decoders.cpp b/src/video_core/textures/decoders.cpp
index 0db4367f1..eaf15da32 100644
--- a/src/video_core/textures/decoders.cpp
+++ b/src/video_core/textures/decoders.cpp
@@ -65,6 +65,8 @@ u32 BytesPerPixel(TextureFormat format) {
return 1;
case TextureFormat::R16_G16_B16_A16:
return 8;
+ case TextureFormat::R32_G32_B32_A32:
+ return 16;
default:
UNIMPLEMENTED_MSG("Format not implemented");
break;
@@ -94,6 +96,7 @@ std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width,
case TextureFormat::B5G6R5:
case TextureFormat::R8:
case TextureFormat::R16_G16_B16_A16:
+ case TextureFormat::R32_G32_B32_A32:
case TextureFormat::BF10GF11RF11:
case TextureFormat::ASTC_2D_4X4:
CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data,
@@ -124,6 +127,7 @@ std::vector<u8> DecodeTexture(const std::vector<u8>& texture_data, TextureFormat
case TextureFormat::B5G6R5:
case TextureFormat::R8:
case TextureFormat::BF10GF11RF11:
+ case TextureFormat::R32_G32_B32_A32:
// TODO(Subv): For the time being just forward the same data without any decoding.
rgba_data = texture_data;
break;