diff options
| author | 2018-08-31 18:11:19 +0200 | |
|---|---|---|
| committer | 2018-08-31 12:11:19 -0400 | |
| commit | 06578e89b2598eca6c2da1cb8dcdc576aa3f632a (patch) | |
| tree | 2aadd703183d718591d538253072a03d0cfb0ceb /src/video_core/textures/decoders.cpp | |
| parent | Merge pull request #1204 from lioncash/pimpl (diff) | |
| download | yuzu-06578e89b2598eca6c2da1cb8dcdc576aa3f632a.tar.gz yuzu-06578e89b2598eca6c2da1cb8dcdc576aa3f632a.tar.xz yuzu-06578e89b2598eca6c2da1cb8dcdc576aa3f632a.zip | |
Implement BC6H_UF16 & BC6H_SF16 (#1092)
* Implement BC6H_UF16 & BC6H_SF16
Require by ARMS
* correct coding style
* correct coding style part 2
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 70746a34e..272294c62 100644 --- a/src/video_core/textures/decoders.cpp +++ b/src/video_core/textures/decoders.cpp | |||
| @@ -56,6 +56,8 @@ u32 BytesPerPixel(TextureFormat format) { | |||
| 56 | case TextureFormat::DXT45: | 56 | case TextureFormat::DXT45: |
| 57 | case TextureFormat::DXN2: | 57 | case TextureFormat::DXN2: |
| 58 | case TextureFormat::BC7U: | 58 | case TextureFormat::BC7U: |
| 59 | case TextureFormat::BC6H_UF16: | ||
| 60 | case TextureFormat::BC6H_SF16: | ||
| 59 | // In this case a 'pixel' actually refers to a 4x4 tile. | 61 | // In this case a 'pixel' actually refers to a 4x4 tile. |
| 60 | return 16; | 62 | return 16; |
| 61 | case TextureFormat::R32_G32_B32: | 63 | case TextureFormat::R32_G32_B32: |
| @@ -106,6 +108,8 @@ std::vector<u8> DecodeTexture(const std::vector<u8>& texture_data, TextureFormat | |||
| 106 | case TextureFormat::DXN1: | 108 | case TextureFormat::DXN1: |
| 107 | case TextureFormat::DXN2: | 109 | case TextureFormat::DXN2: |
| 108 | case TextureFormat::BC7U: | 110 | case TextureFormat::BC7U: |
| 111 | case TextureFormat::BC6H_UF16: | ||
| 112 | case TextureFormat::BC6H_SF16: | ||
| 109 | case TextureFormat::ASTC_2D_4X4: | 113 | case TextureFormat::ASTC_2D_4X4: |
| 110 | case TextureFormat::A8R8G8B8: | 114 | case TextureFormat::A8R8G8B8: |
| 111 | case TextureFormat::A2B10G10R10: | 115 | case TextureFormat::A2B10G10R10: |