diff options
author | Subv <subv2112@gmail.com> | 2018-07-24 05:21:31 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-07-24 05:21:31 +0200 |
commit | ccc42702b53ac7585cc3a0db6dc5691875528167 (patch) | |
tree | e9e9ac49fe9de96ab3fcfbcee4e6307370b87d23 /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | Merge pull request #791 from bunnei/rg32f-rgba32f-bgra8 (diff) | |
download | yuzu-ccc42702b53ac7585cc3a0db6dc5691875528167.tar yuzu-ccc42702b53ac7585cc3a0db6dc5691875528167.tar.gz yuzu-ccc42702b53ac7585cc3a0db6dc5691875528167.tar.bz2 yuzu-ccc42702b53ac7585cc3a0db6dc5691875528167.tar.lz yuzu-ccc42702b53ac7585cc3a0db6dc5691875528167.tar.xz yuzu-ccc42702b53ac7585cc3a0db6dc5691875528167.tar.zst yuzu-ccc42702b53ac7585cc3a0db6dc5691875528167.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 | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index 23efbe67c..800d239d9 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -40,14 +40,15 @@ struct SurfaceParams { BGRA8 = 15, RGBA32F = 16, RG32F = 17, + R32F = 18, MaxColorFormat, // DepthStencil formats - Z24S8 = 18, - S8Z24 = 19, - Z32F = 20, - Z16 = 21, + Z24S8 = 19, + S8Z24 = 20, + Z32F = 21, + Z16 = 22, MaxDepthStencilFormat, @@ -103,6 +104,7 @@ struct SurfaceParams { 1, // BGRA8 1, // RGBA32F 1, // RG32F + 1, // R32F 1, // Z24S8 1, // S8Z24 1, // Z32F @@ -136,6 +138,7 @@ struct SurfaceParams { 32, // BGRA8 128, // RGBA32F 64, // RG32F + 32, // R32F 32, // Z24S8 32, // S8Z24 32, // Z32F @@ -223,6 +226,8 @@ struct SurfaceParams { UNREACHABLE(); case Tegra::Texture::TextureFormat::R32_G32: return PixelFormat::RG32F; + case Tegra::Texture::TextureFormat::R32: + return PixelFormat::R32F; case Tegra::Texture::TextureFormat::DXT1: return PixelFormat::DXT1; case Tegra::Texture::TextureFormat::DXT23: @@ -283,6 +288,8 @@ struct SurfaceParams { return Tegra::Texture::TextureFormat::R32_G32_B32_A32; case PixelFormat::RG32F: return Tegra::Texture::TextureFormat::R32_G32; + case PixelFormat::R32F: + return Tegra::Texture::TextureFormat::R32; default: LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); UNREACHABLE(); |