diff options
| author | gdk <gab.dark.100@gmail.com> | 2019-11-15 20:41:06 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | 8eb773d81f0b580851b840f3abc222b784523fbc (patch) | |
| tree | 7be5a2a09072363d287728080224c1ad1188d286 /Ryujinx.Graphics.Shader/SamplerType.cs | |
| parent | 04102e5c9db600d4ea4ffc0b514bda6f5e300bca (diff) | |
Make the shader translator more error resilient (part 2)
Diffstat (limited to 'Ryujinx.Graphics.Shader/SamplerType.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/SamplerType.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Shader/SamplerType.cs b/Ryujinx.Graphics.Shader/SamplerType.cs index 5e0b776c..9546efe4 100644 --- a/Ryujinx.Graphics.Shader/SamplerType.cs +++ b/Ryujinx.Graphics.Shader/SamplerType.cs @@ -5,6 +5,7 @@ namespace Ryujinx.Graphics.Shader [Flags] public enum SamplerType { + None = 0, Texture1D, TextureBuffer, Texture2D, @@ -32,7 +33,7 @@ namespace Ryujinx.Graphics.Shader case SamplerType.TextureCube: return 3; } - throw new ArgumentException($"Invalid texture type \"{type}\"."); + throw new ArgumentException($"Invalid sampler type \"{type}\"."); } } }
\ No newline at end of file |
