diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2022-03-14 23:42:08 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-15 03:42:08 +0100 |
| commit | e5ad1dfa48590685fd93443a2adfd8568f6c1db0 (patch) | |
| tree | 4810662b088d4f553a25f293778f39861fb0326d /Ryujinx.Graphics.Gpu/Engine | |
| parent | 79becc4b78bd8a8402cc86a96c812cb8ac9d027a (diff) | |
Implement S8D24 texture format and tweak depth range detection (#2458)
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Engine/Types/ZetaFormat.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Types/ZetaFormat.cs b/Ryujinx.Graphics.Gpu/Engine/Types/ZetaFormat.cs index 2de38fd2..1de1621f 100644 --- a/Ryujinx.Graphics.Gpu/Engine/Types/ZetaFormat.cs +++ b/Ryujinx.Graphics.Gpu/Engine/Types/ZetaFormat.cs @@ -28,13 +28,13 @@ namespace Ryujinx.Graphics.Gpu.Engine.Types { return format switch { - ZetaFormat.D32Float => new FormatInfo(Format.D32Float, 1, 1, 4, 1), - ZetaFormat.D16Unorm => new FormatInfo(Format.D16Unorm, 1, 1, 2, 1), - ZetaFormat.D24UnormS8Uint => new FormatInfo(Format.D24UnormS8Uint, 1, 1, 4, 2), - ZetaFormat.D24Unorm => new FormatInfo(Format.D24UnormS8Uint, 1, 1, 4, 1), - ZetaFormat.S8UintD24Unorm => new FormatInfo(Format.D24UnormS8Uint, 1, 1, 4, 2), - ZetaFormat.S8Uint => new FormatInfo(Format.S8Uint, 1, 1, 1, 1), - ZetaFormat.D32FloatS8Uint => new FormatInfo(Format.D32FloatS8Uint, 1, 1, 8, 2), + ZetaFormat.D32Float => new FormatInfo(Format.D32Float, 1, 1, 4, 1), + ZetaFormat.D16Unorm => new FormatInfo(Format.D16Unorm, 1, 1, 2, 1), + ZetaFormat.D24UnormS8Uint => new FormatInfo(Format.D24UnormS8Uint, 1, 1, 4, 2), + ZetaFormat.D24Unorm => new FormatInfo(Format.D24UnormS8Uint, 1, 1, 4, 1), + ZetaFormat.S8UintD24Unorm => new FormatInfo(Format.S8UintD24Unorm, 1, 1, 4, 2), + ZetaFormat.S8Uint => new FormatInfo(Format.S8Uint, 1, 1, 1, 1), + ZetaFormat.D32FloatS8Uint => new FormatInfo(Format.D32FloatS8Uint, 1, 1, 8, 2), _ => FormatInfo.Default }; } |
