diff options
| author | 2019-09-22 01:40:46 +0200 | |
|---|---|---|
| committer | 2019-09-22 02:16:44 +0200 | |
| commit | 55d272efe66a30307567db10f32c623364f58848 (patch) | |
| tree | 516d8619fd8dbe11fea931e1016260097c710f74 /src/video_core/surface.cpp | |
| parent | Update README.md (#2871) (diff) | |
| download | yuzu-55d272efe66a30307567db10f32c623364f58848.tar.gz yuzu-55d272efe66a30307567db10f32c623364f58848.tar.xz yuzu-55d272efe66a30307567db10f32c623364f58848.zip | |
video_core: Implement RGBX16F PixelFormat
Diffstat (limited to 'src/video_core/surface.cpp')
| -rw-r--r-- | src/video_core/surface.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp index 53d0142cb..250afc6d6 100644 --- a/src/video_core/surface.cpp +++ b/src/video_core/surface.cpp | |||
| @@ -159,6 +159,8 @@ PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format) | |||
| 159 | return PixelFormat::R32UI; | 159 | return PixelFormat::R32UI; |
| 160 | case Tegra::RenderTargetFormat::RG32_UINT: | 160 | case Tegra::RenderTargetFormat::RG32_UINT: |
| 161 | return PixelFormat::RG32UI; | 161 | return PixelFormat::RG32UI; |
| 162 | case Tegra::RenderTargetFormat::RGBX16_FLOAT: | ||
| 163 | return PixelFormat::RGBX16F; | ||
| 162 | default: | 164 | default: |
| 163 | LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); | 165 | LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); |
| 164 | UNREACHABLE(); | 166 | UNREACHABLE(); |
| @@ -415,6 +417,7 @@ ComponentType ComponentTypeFromRenderTarget(Tegra::RenderTargetFormat format) { | |||
| 415 | case Tegra::RenderTargetFormat::RG8_SNORM: | 417 | case Tegra::RenderTargetFormat::RG8_SNORM: |
| 416 | return ComponentType::SNorm; | 418 | return ComponentType::SNorm; |
| 417 | case Tegra::RenderTargetFormat::RGBA16_FLOAT: | 419 | case Tegra::RenderTargetFormat::RGBA16_FLOAT: |
| 420 | case Tegra::RenderTargetFormat::RGBX16_FLOAT: | ||
| 418 | case Tegra::RenderTargetFormat::R11G11B10_FLOAT: | 421 | case Tegra::RenderTargetFormat::R11G11B10_FLOAT: |
| 419 | case Tegra::RenderTargetFormat::RGBA32_FLOAT: | 422 | case Tegra::RenderTargetFormat::RGBA32_FLOAT: |
| 420 | case Tegra::RenderTargetFormat::RG32_FLOAT: | 423 | case Tegra::RenderTargetFormat::RG32_FLOAT: |