diff options
author | bunnei <bunneidev@gmail.com> | 2018-05-30 05:42:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-30 05:42:55 +0200 |
commit | c8e1383fa9303c5e8d4c4c001d61b1d7f0e880dc (patch) | |
tree | 7367df539beae496ecc4c7175f644d977e6a1a86 /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | Merge pull request #480 from mailwl/bcat (diff) | |
parent | GPU: Implemented the R8 texture format (0x1D) (diff) | |
download | yuzu-c8e1383fa9303c5e8d4c4c001d61b1d7f0e880dc.tar yuzu-c8e1383fa9303c5e8d4c4c001d61b1d7f0e880dc.tar.gz yuzu-c8e1383fa9303c5e8d4c4c001d61b1d7f0e880dc.tar.bz2 yuzu-c8e1383fa9303c5e8d4c4c001d61b1d7f0e880dc.tar.lz yuzu-c8e1383fa9303c5e8d4c4c001d61b1d7f0e880dc.tar.xz yuzu-c8e1383fa9303c5e8d4c4c001d61b1d7f0e880dc.tar.zst yuzu-c8e1383fa9303c5e8d4c4c001d61b1d7f0e880dc.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 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index 03e28f64a..fc09f108c 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -58,9 +58,10 @@ struct SurfaceParams { B5G6R5 = 1, A2B10G10R10 = 2, A1B5G5R5 = 3, - DXT1 = 4, - DXT23 = 5, - DXT45 = 6, + R8 = 4, + DXT1 = 5, + DXT23 = 6, + DXT45 = 7, Max, Invalid = 255, @@ -100,6 +101,7 @@ struct SurfaceParams { 1, // B5G6R5 1, // A2B10G10R10 1, // A1B5G5R5 + 1, // R8 4, // DXT1 4, // DXT23 4, // DXT45 @@ -121,6 +123,7 @@ struct SurfaceParams { 16, // B5G6R5 32, // A2B10G10R10 16, // A1B5G5R5 + 8, // R8 64, // DXT1 128, // DXT23 128, // DXT45 @@ -167,6 +170,8 @@ struct SurfaceParams { return PixelFormat::A2B10G10R10; case Tegra::Texture::TextureFormat::A1B5G5R5: return PixelFormat::A1B5G5R5; + case Tegra::Texture::TextureFormat::R8: + return PixelFormat::R8; case Tegra::Texture::TextureFormat::DXT1: return PixelFormat::DXT1; case Tegra::Texture::TextureFormat::DXT23: @@ -190,6 +195,8 @@ struct SurfaceParams { return Tegra::Texture::TextureFormat::A2B10G10R10; case PixelFormat::A1B5G5R5: return Tegra::Texture::TextureFormat::A1B5G5R5; + case PixelFormat::R8: + return Tegra::Texture::TextureFormat::R8; case PixelFormat::DXT1: return Tegra::Texture::TextureFormat::DXT1; case PixelFormat::DXT23: |