diff options
author | gdkchan <gab.dark.100@gmail.com> | 2023-10-03 19:43:11 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-03 22:43:11 +0000 |
commit | a2a97e1b11d38b51231e05a1da5202481cdf4df8 (patch) | |
tree | 97565f52001cbb1dbe2d0899ef60c371bfc5c8ff /src/Ryujinx.Graphics.Shader/IntermediateRepresentation/Instruction.cs | |
parent | 8b2625b0be3020740a90f167e46f8f665102fef5 (diff) |
Implement textureSamples texture query shader instruction (#5750)1.1.1039
* Implement textureSamples texture query shader instruction
* Shader cache version bump
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/IntermediateRepresentation/Instruction.cs')
-rw-r--r-- | src/Ryujinx.Graphics.Shader/IntermediateRepresentation/Instruction.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Ryujinx.Graphics.Shader/IntermediateRepresentation/Instruction.cs b/src/Ryujinx.Graphics.Shader/IntermediateRepresentation/Instruction.cs index 808cc7ed..e5695ebc 100644 --- a/src/Ryujinx.Graphics.Shader/IntermediateRepresentation/Instruction.cs +++ b/src/Ryujinx.Graphics.Shader/IntermediateRepresentation/Instruction.cs @@ -1,10 +1,8 @@ using System; -using System.Diagnostics.CodeAnalysis; namespace Ryujinx.Graphics.Shader.IntermediateRepresentation { [Flags] - [SuppressMessage("Design", "CA1069: Enums values should not be duplicated")] enum Instruction { Absolute = 1, @@ -118,7 +116,8 @@ namespace Ryujinx.Graphics.Shader.IntermediateRepresentation Subtract, SwizzleAdd, TextureSample, - TextureSize, + TextureQuerySamples, + TextureQuerySize, Truncate, UnpackDouble2x32, UnpackHalf2x16, @@ -160,7 +159,7 @@ namespace Ryujinx.Graphics.Shader.IntermediateRepresentation public static bool IsTextureQuery(this Instruction inst) { inst &= Instruction.Mask; - return inst == Instruction.Lod || inst == Instruction.TextureSize; + return inst == Instruction.Lod || inst == Instruction.TextureQuerySamples || inst == Instruction.TextureQuerySize; } } } |