aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/StructuredIr/AstTextureOperation.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Shader/StructuredIr/AstTextureOperation.cs')
-rw-r--r--Ryujinx.Graphics.Shader/StructuredIr/AstTextureOperation.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/StructuredIr/AstTextureOperation.cs b/Ryujinx.Graphics.Shader/StructuredIr/AstTextureOperation.cs
index 7d1d0ae3..957a956f 100644
--- a/Ryujinx.Graphics.Shader/StructuredIr/AstTextureOperation.cs
+++ b/Ryujinx.Graphics.Shader/StructuredIr/AstTextureOperation.cs
@@ -27,5 +27,10 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
CbufSlot = cbufSlot;
Handle = handle;
}
+
+ public AstTextureOperation WithType(SamplerType type)
+ {
+ return new AstTextureOperation(Inst, type, Format, Flags, CbufSlot, Handle, Index);
+ }
}
} \ No newline at end of file