diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-07-12 16:20:33 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-12 16:20:33 -0300 |
| commit | 9b08abc644c4afcb1b4eb59bfbe8057727ad9d70 (patch) | |
| tree | 26b7af4caaf6e181774c94084873e6781ef1298f /Ryujinx.Graphics.Shader/IntermediateRepresentation | |
| parent | 40b21cc3c4d2622bbd4f88d43073341854d9a671 (diff) | |
Fix shader compilation on shaders that uses rectangle textures (#2471)
Diffstat (limited to 'Ryujinx.Graphics.Shader/IntermediateRepresentation')
| -rw-r--r-- | Ryujinx.Graphics.Shader/IntermediateRepresentation/TextureOperation.cs | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Shader/IntermediateRepresentation/TextureOperation.cs b/Ryujinx.Graphics.Shader/IntermediateRepresentation/TextureOperation.cs index b76d5dc6..e80f9c11 100644 --- a/Ryujinx.Graphics.Shader/IntermediateRepresentation/TextureOperation.cs +++ b/Ryujinx.Graphics.Shader/IntermediateRepresentation/TextureOperation.cs @@ -16,18 +16,31 @@ namespace Ryujinx.Graphics.Shader.IntermediateRepresentation SamplerType type, TextureFormat format, TextureFlags flags, + int cbufSlot, int handle, int compIndex, Operand dest, - params Operand[] sources) : base(inst, compIndex, dest, sources) + Operand[] sources) : base(inst, compIndex, dest, sources) { Type = type; Format = format; Flags = flags; - CbufSlot = DefaultCbufSlot; + CbufSlot = cbufSlot; Handle = handle; } + public TextureOperation( + Instruction inst, + SamplerType type, + TextureFormat format, + TextureFlags flags, + int handle, + int compIndex, + Operand dest, + Operand[] sources) : this(inst, type, format, flags, DefaultCbufSlot, handle, compIndex, dest, sources) + { + } + public void TurnIntoIndexed(int handle) { Type |= SamplerType.Indexed; |
