diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-01 17:51:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 17:51:59 +0200 |
commit | 99a1d7440db6412f5cddcb7e00b523661f16cb53 (patch) | |
tree | 196219c41cdeebfc0dd5e0a1706a56a58d9c9dd7 /src/video_core | |
parent | Merge pull request #882 from lioncash/unused (diff) | |
parent | Implement R32_FLOAT RenderTargetFormat (diff) | |
download | yuzu-99a1d7440db6412f5cddcb7e00b523661f16cb53.tar yuzu-99a1d7440db6412f5cddcb7e00b523661f16cb53.tar.gz yuzu-99a1d7440db6412f5cddcb7e00b523661f16cb53.tar.bz2 yuzu-99a1d7440db6412f5cddcb7e00b523661f16cb53.tar.lz yuzu-99a1d7440db6412f5cddcb7e00b523661f16cb53.tar.xz yuzu-99a1d7440db6412f5cddcb7e00b523661f16cb53.tar.zst yuzu-99a1d7440db6412f5cddcb7e00b523661f16cb53.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/gpu.cpp | 1 | ||||
-rw-r--r-- | src/video_core/gpu.h | 1 | ||||
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index 60c49d672..141e20444 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp @@ -40,6 +40,7 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) { case RenderTargetFormat::RGBA8_UNORM: case RenderTargetFormat::RGB10_A2_UNORM: case RenderTargetFormat::BGRA8_UNORM: + case RenderTargetFormat::R32_FLOAT: return 4; default: UNIMPLEMENTED_MSG("Unimplemented render target format {}", static_cast<u32>(format)); diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index c464fc6d1..08aa75503 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -29,6 +29,7 @@ enum class RenderTargetFormat : u32 { RG16_UINT = 0xDD, RG16_FLOAT = 0xDE, R11G11B10_FLOAT = 0xE0, + R32_FLOAT = 0xE5, R16_FLOAT = 0xF2, R8_UNORM = 0xF3, }; diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index bf0458b94..b73dc2b06 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -232,6 +232,8 @@ struct SurfaceParams { return PixelFormat::RG16S; case Tegra::RenderTargetFormat::R16_FLOAT: return PixelFormat::R16F; + case Tegra::RenderTargetFormat::R32_FLOAT: + return PixelFormat::R32F; default: LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); UNREACHABLE(); @@ -439,6 +441,7 @@ struct SurfaceParams { case Tegra::RenderTargetFormat::RG32_FLOAT: case Tegra::RenderTargetFormat::RG16_FLOAT: case Tegra::RenderTargetFormat::R16_FLOAT: + case Tegra::RenderTargetFormat::R32_FLOAT: return ComponentType::Float; case Tegra::RenderTargetFormat::RGBA32_UINT: case Tegra::RenderTargetFormat::RG16_UINT: |