diff options
author | Subv <subv2112@gmail.com> | 2018-07-24 05:21:31 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-07-24 05:21:31 +0200 |
commit | ccc42702b53ac7585cc3a0db6dc5691875528167 (patch) | |
tree | e9e9ac49fe9de96ab3fcfbcee4e6307370b87d23 /src/video_core/textures/decoders.cpp | |
parent | Merge pull request #791 from bunnei/rg32f-rgba32f-bgra8 (diff) | |
download | yuzu-ccc42702b53ac7585cc3a0db6dc5691875528167.tar yuzu-ccc42702b53ac7585cc3a0db6dc5691875528167.tar.gz yuzu-ccc42702b53ac7585cc3a0db6dc5691875528167.tar.bz2 yuzu-ccc42702b53ac7585cc3a0db6dc5691875528167.tar.lz yuzu-ccc42702b53ac7585cc3a0db6dc5691875528167.tar.xz yuzu-ccc42702b53ac7585cc3a0db6dc5691875528167.tar.zst yuzu-ccc42702b53ac7585cc3a0db6dc5691875528167.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/textures/decoders.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/textures/decoders.cpp b/src/video_core/textures/decoders.cpp index e5e9e1898..cda2646ad 100644 --- a/src/video_core/textures/decoders.cpp +++ b/src/video_core/textures/decoders.cpp @@ -61,6 +61,7 @@ u32 BytesPerPixel(TextureFormat format) { case TextureFormat::A8R8G8B8: case TextureFormat::A2B10G10R10: case TextureFormat::BF10GF11RF11: + case TextureFormat::R32: return 4; case TextureFormat::A1B5G5R5: case TextureFormat::B5G6R5: @@ -121,6 +122,7 @@ std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width, case TextureFormat::R16_G16_B16_A16: case TextureFormat::R32_G32_B32_A32: case TextureFormat::R32_G32: + case TextureFormat::R32: case TextureFormat::BF10GF11RF11: case TextureFormat::ASTC_2D_4X4: CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data, @@ -178,6 +180,7 @@ std::vector<u8> DecodeTexture(const std::vector<u8>& texture_data, TextureFormat case TextureFormat::BF10GF11RF11: case TextureFormat::R32_G32_B32_A32: case TextureFormat::R32_G32: + case TextureFormat::R32: // TODO(Subv): For the time being just forward the same data without any decoding. rgba_data = texture_data; break; |