From 06578e89b2598eca6c2da1cb8dcdc576aa3f632a Mon Sep 17 00:00:00 2001 From: greggameplayer <33609333+greggameplayer@users.noreply.github.com> Date: Fri, 31 Aug 2018 18:11:19 +0200 Subject: Implement BC6H_UF16 & BC6H_SF16 (#1092) * Implement BC6H_UF16 & BC6H_SF16 Require by ARMS * correct coding style * correct coding style part 2 --- src/video_core/textures/decoders.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/video_core/textures/decoders.cpp') 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) { case TextureFormat::DXT45: case TextureFormat::DXN2: case TextureFormat::BC7U: + case TextureFormat::BC6H_UF16: + case TextureFormat::BC6H_SF16: // In this case a 'pixel' actually refers to a 4x4 tile. return 16; case TextureFormat::R32_G32_B32: @@ -106,6 +108,8 @@ std::vector DecodeTexture(const std::vector& texture_data, TextureFormat case TextureFormat::DXN1: case TextureFormat::DXN2: case TextureFormat::BC7U: + case TextureFormat::BC6H_UF16: + case TextureFormat::BC6H_SF16: case TextureFormat::ASTC_2D_4X4: case TextureFormat::A8R8G8B8: case TextureFormat::A2B10G10R10: -- cgit v1.2.3