Make the shader translator more error resilient (part 2)
This commit is contained in:
parent
04102e5c9d
commit
8eb773d81f
5 changed files with 67 additions and 31 deletions
|
@ -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}\".");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue