diff options
| author | 2018-06-30 14:23:13 -0500 | |
|---|---|---|
| committer | 2018-06-30 14:23:13 -0500 | |
| commit | c0e2d5275814e6d3fe15d1b8abb0f057c0e5d155 (patch) | |
| tree | 9fd9e83b437c5103fe4095d09dc111c91d95f221 /src/video_core/textures/decoders.cpp | |
| parent | GLCache: Specify the component type along the texture type in the format tuple. (diff) | |
| download | yuzu-c0e2d5275814e6d3fe15d1b8abb0f057c0e5d155.tar.gz yuzu-c0e2d5275814e6d3fe15d1b8abb0f057c0e5d155.tar.xz yuzu-c0e2d5275814e6d3fe15d1b8abb0f057c0e5d155.zip | |
GPU: Implemented the RGBA32_UINT rendertarget format.
Diffstat (limited to 'src/video_core/textures/decoders.cpp')
| -rw-r--r-- | src/video_core/textures/decoders.cpp | 4 |
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) { | |||
| 65 | return 1; | 65 | return 1; |
| 66 | case TextureFormat::R16_G16_B16_A16: | 66 | case TextureFormat::R16_G16_B16_A16: |
| 67 | return 8; | 67 | return 8; |
| 68 | case TextureFormat::R32_G32_B32_A32: | ||
| 69 | return 16; | ||
| 68 | default: | 70 | default: |
| 69 | UNIMPLEMENTED_MSG("Format not implemented"); | 71 | UNIMPLEMENTED_MSG("Format not implemented"); |
| 70 | break; | 72 | break; |
| @@ -94,6 +96,7 @@ std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width, | |||
| 94 | case TextureFormat::B5G6R5: | 96 | case TextureFormat::B5G6R5: |
| 95 | case TextureFormat::R8: | 97 | case TextureFormat::R8: |
| 96 | case TextureFormat::R16_G16_B16_A16: | 98 | case TextureFormat::R16_G16_B16_A16: |
| 99 | case TextureFormat::R32_G32_B32_A32: | ||
| 97 | case TextureFormat::BF10GF11RF11: | 100 | case TextureFormat::BF10GF11RF11: |
| 98 | case TextureFormat::ASTC_2D_4X4: | 101 | case TextureFormat::ASTC_2D_4X4: |
| 99 | CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data, | 102 | 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 | |||
| 124 | case TextureFormat::B5G6R5: | 127 | case TextureFormat::B5G6R5: |
| 125 | case TextureFormat::R8: | 128 | case TextureFormat::R8: |
| 126 | case TextureFormat::BF10GF11RF11: | 129 | case TextureFormat::BF10GF11RF11: |
| 130 | case TextureFormat::R32_G32_B32_A32: | ||
| 127 | // TODO(Subv): For the time being just forward the same data without any decoding. | 131 | // TODO(Subv): For the time being just forward the same data without any decoding. |
| 128 | rgba_data = texture_data; | 132 | rgba_data = texture_data; |
| 129 | break; | 133 | break; |