diff options
| author | 2018-07-01 03:22:38 -0400 | |
|---|---|---|
| committer | 2018-07-01 03:22:38 -0400 | |
| commit | b611d852db85eb8b2d5b4b69696bc2411b7bf0fb (patch) | |
| tree | c8954545615b2c45c66be12b58fd29bd95e9272f /src/video_core/textures/decoders.cpp | |
| parent | Merge pull request #600 from bunnei/pred-not-eq-nan (diff) | |
| parent | GPU: Implemented the RGBA32_UINT rendertarget format. (diff) | |
| download | yuzu-b611d852db85eb8b2d5b4b69696bc2411b7bf0fb.tar.gz yuzu-b611d852db85eb8b2d5b4b69696bc2411b7bf0fb.tar.xz yuzu-b611d852db85eb8b2d5b4b69696bc2411b7bf0fb.zip | |
Merge pull request #601 from Subv/rgba32_ui
GPU: Implement 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; |