diff options
author | bunnei <bunneidev@gmail.com> | 2018-05-31 04:24:07 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-05-31 04:24:07 +0200 |
commit | ca5a4a704b3cdecccb539a92c1479442406a90f5 (patch) | |
tree | 02729a24411b243aa6de8ae3d9110081618c4b61 /src/video_core/textures/decoders.cpp | |
parent | Merge pull request #489 from Subv/vertexid (diff) | |
download | yuzu-ca5a4a704b3cdecccb539a92c1479442406a90f5.tar yuzu-ca5a4a704b3cdecccb539a92c1479442406a90f5.tar.gz yuzu-ca5a4a704b3cdecccb539a92c1479442406a90f5.tar.bz2 yuzu-ca5a4a704b3cdecccb539a92c1479442406a90f5.tar.lz yuzu-ca5a4a704b3cdecccb539a92c1479442406a90f5.tar.xz yuzu-ca5a4a704b3cdecccb539a92c1479442406a90f5.tar.zst yuzu-ca5a4a704b3cdecccb539a92c1479442406a90f5.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 9d7b73b73..0179663e8 100644 --- a/src/video_core/textures/decoders.cpp +++ b/src/video_core/textures/decoders.cpp @@ -60,6 +60,8 @@ u32 BytesPerPixel(TextureFormat format) { return 2; case TextureFormat::R8: return 1; + case TextureFormat::R16_G16_B16_A16: + return 8; default: UNIMPLEMENTED_MSG("Format not implemented"); break; @@ -86,6 +88,7 @@ std::vector<u8> UnswizzleTexture(VAddr address, TextureFormat format, u32 width, case TextureFormat::A1B5G5R5: case TextureFormat::B5G6R5: case TextureFormat::R8: + case TextureFormat::R16_G16_B16_A16: CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data, unswizzled_data.data(), true, block_height); break; |