diff options
author | greggameplayer <33609333+greggameplayer@users.noreply.github.com> | 2018-08-31 18:11:19 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-08-31 18:11:19 +0200 |
commit | 06578e89b2598eca6c2da1cb8dcdc576aa3f632a (patch) | |
tree | 2aadd703183d718591d538253072a03d0cfb0ceb /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | Merge pull request #1204 from lioncash/pimpl (diff) | |
download | yuzu-06578e89b2598eca6c2da1cb8dcdc576aa3f632a.tar yuzu-06578e89b2598eca6c2da1cb8dcdc576aa3f632a.tar.gz yuzu-06578e89b2598eca6c2da1cb8dcdc576aa3f632a.tar.bz2 yuzu-06578e89b2598eca6c2da1cb8dcdc576aa3f632a.tar.lz yuzu-06578e89b2598eca6c2da1cb8dcdc576aa3f632a.tar.xz yuzu-06578e89b2598eca6c2da1cb8dcdc576aa3f632a.tar.zst yuzu-06578e89b2598eca6c2da1cb8dcdc576aa3f632a.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer_cache.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 66 |
1 files changed, 38 insertions, 28 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index 8a6ca2a4b..ecdd8d8e5 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -45,42 +45,44 @@ struct SurfaceParams { DXN2UNORM = 17, DXN2SNORM = 18, BC7U = 19, - ASTC_2D_4X4 = 20, - G8R8U = 21, - G8R8S = 22, - BGRA8 = 23, - RGBA32F = 24, - RG32F = 25, - R32F = 26, - R16F = 27, - R16U = 28, - R16S = 29, - R16UI = 30, - R16I = 31, - RG16 = 32, - RG16F = 33, - RG16UI = 34, - RG16I = 35, - RG16S = 36, - RGB32F = 37, - SRGBA8 = 38, - RG8U = 39, - RG8S = 40, - RG32UI = 41, - R32UI = 42, + BC6H_UF16 = 20, + BC6H_SF16 = 21, + ASTC_2D_4X4 = 22, + G8R8U = 23, + G8R8S = 24, + BGRA8 = 25, + RGBA32F = 26, + RG32F = 27, + R32F = 28, + R16F = 29, + R16U = 30, + R16S = 31, + R16UI = 32, + R16I = 33, + RG16 = 34, + RG16F = 35, + RG16UI = 36, + RG16I = 37, + RG16S = 38, + RGB32F = 39, + SRGBA8 = 40, + RG8U = 41, + RG8S = 42, + RG32UI = 43, + R32UI = 44, MaxColorFormat, // Depth formats - Z32F = 43, - Z16 = 44, + Z32F = 45, + Z16 = 46, MaxDepthFormat, // DepthStencil formats - Z24S8 = 45, - S8Z24 = 46, - Z32FS8 = 47, + Z24S8 = 47, + S8Z24 = 48, + Z32FS8 = 49, MaxDepthStencilFormat, @@ -138,6 +140,8 @@ struct SurfaceParams { 4, // DXN2UNORM 4, // DXN2SNORM 4, // BC7U + 4, // BC6H_UF16 + 4, // BC6H_SF16 4, // ASTC_2D_4X4 1, // G8R8U 1, // G8R8S @@ -197,6 +201,8 @@ struct SurfaceParams { 128, // DXN2UNORM 128, // DXN2SNORM 128, // BC7U + 128, // BC6H_UF16 + 128, // BC6H_SF16 32, // ASTC_2D_4X4 16, // G8R8U 16, // G8R8S @@ -482,6 +488,10 @@ struct SurfaceParams { UNREACHABLE(); case Tegra::Texture::TextureFormat::BC7U: return PixelFormat::BC7U; + case Tegra::Texture::TextureFormat::BC6H_UF16: + return PixelFormat::BC6H_UF16; + case Tegra::Texture::TextureFormat::BC6H_SF16: + return PixelFormat::BC6H_SF16; case Tegra::Texture::TextureFormat::ASTC_2D_4X4: return PixelFormat::ASTC_2D_4X4; case Tegra::Texture::TextureFormat::R16_G16: |