diff options
author | greggameplayer <33609333+greggameplayer@users.noreply.github.com> | 2018-08-02 20:56:38 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-08-02 20:56:38 +0200 |
commit | fe64e1d38ee7e2cb5c96b42a4107949a29898e81 (patch) | |
tree | 4e69cce051d0e79f54a7ad0626af9c3f901dedfe /src/video_core/textures/decoders.cpp | |
parent | Merge pull request #893 from lioncash/psc (diff) | |
download | yuzu-fe64e1d38ee7e2cb5c96b42a4107949a29898e81.tar yuzu-fe64e1d38ee7e2cb5c96b42a4107949a29898e81.tar.gz yuzu-fe64e1d38ee7e2cb5c96b42a4107949a29898e81.tar.bz2 yuzu-fe64e1d38ee7e2cb5c96b42a4107949a29898e81.tar.lz yuzu-fe64e1d38ee7e2cb5c96b42a4107949a29898e81.tar.xz yuzu-fe64e1d38ee7e2cb5c96b42a4107949a29898e81.tar.zst yuzu-fe64e1d38ee7e2cb5c96b42a4107949a29898e81.zip |
Diffstat (limited to '')
-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 d794f8402..65db84ad3 100644 --- a/src/video_core/textures/decoders.cpp +++ b/src/video_core/textures/decoders.cpp @@ -57,6 +57,8 @@ u32 BytesPerPixel(TextureFormat format) { case TextureFormat::BC7U: // In this case a 'pixel' actually refers to a 4x4 tile. return 16; + case TextureFormat::R32_G32_B32: + return 12; case TextureFormat::ASTC_2D_4X4: case TextureFormat::A8R8G8B8: case TextureFormat::A2B10G10R10: @@ -131,6 +133,7 @@ std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width, case TextureFormat::R16_G16: case TextureFormat::BF10GF11RF11: case TextureFormat::ASTC_2D_4X4: + case TextureFormat::R32_G32_B32: CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data, unswizzled_data.data(), true, block_height); break; @@ -190,6 +193,7 @@ std::vector<u8> DecodeTexture(const std::vector<u8>& texture_data, TextureFormat case TextureFormat::R32: case TextureFormat::R16: case TextureFormat::R16_G16: + case TextureFormat::R32_G32_B32: // TODO(Subv): For the time being just forward the same data without any decoding. rgba_data = texture_data; break; |