diff options
| author | 2019-10-28 01:36:58 -0300 | |
|---|---|---|
| committer | 2019-10-28 01:36:58 -0300 | |
| commit | c5d9589942b77c70c37982bd3b407abfdcca26a2 (patch) | |
| tree | 7cdcc51a16a51f40ef98c4e214aa6bb52778a0db /src/video_core/surface.cpp | |
| parent | Merge pull request #2971 from FernandoS27/new-scheduler-v2 (diff) | |
| parent | Video_Core: Implement texture format E5B9G9R9_SHAREDEXP. (diff) | |
| download | yuzu-c5d9589942b77c70c37982bd3b407abfdcca26a2.tar.gz yuzu-c5d9589942b77c70c37982bd3b407abfdcca26a2.tar.xz yuzu-c5d9589942b77c70c37982bd3b407abfdcca26a2.zip | |
Merge pull request #3037 from FernandoS27/new-formats
video_core: Implement texture format E5B9G9R9_SHAREDEXP.
Diffstat (limited to 'src/video_core/surface.cpp')
| -rw-r--r-- | src/video_core/surface.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp index 9a3c05288..621136b6e 100644 --- a/src/video_core/surface.cpp +++ b/src/video_core/surface.cpp | |||
| @@ -315,6 +315,14 @@ PixelFormat PixelFormatFromTextureFormat(Tegra::Texture::TextureFormat format, | |||
| 315 | break; | 315 | break; |
| 316 | } | 316 | } |
| 317 | break; | 317 | break; |
| 318 | case Tegra::Texture::TextureFormat::E5B9G9R9_SHAREDEXP: | ||
| 319 | switch (component_type) { | ||
| 320 | case Tegra::Texture::ComponentType::FLOAT: | ||
| 321 | return PixelFormat::E5B9G9R9F; | ||
| 322 | default: | ||
| 323 | break; | ||
| 324 | } | ||
| 325 | break; | ||
| 318 | case Tegra::Texture::TextureFormat::ZF32: | 326 | case Tegra::Texture::TextureFormat::ZF32: |
| 319 | return PixelFormat::Z32F; | 327 | return PixelFormat::Z32F; |
| 320 | case Tegra::Texture::TextureFormat::Z16: | 328 | case Tegra::Texture::TextureFormat::Z16: |