diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-05-19 18:15:26 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-19 23:15:26 +0200 |
| commit | 49745cfa37b247c3e49bfae126bafbe41e166bc6 (patch) | |
| tree | 1a37f2f2c23791244b22529f6e228f008f984409 /Ryujinx.Graphics.Shader/IntermediateRepresentation/TextureOperation.cs | |
| parent | b5c72b44dee2fd977d7cca5aa3c29ef1e2286aa7 (diff) | |
Move shader resource descriptor creation out of the backend (#2290)
* Move shader resource descriptor creation out of the backend
* Remove now unused code, and other nits
* Shader cache version bump
* Nits
* Set format for bindless image load/store
* Fix buffer write flag
Diffstat (limited to 'Ryujinx.Graphics.Shader/IntermediateRepresentation/TextureOperation.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/IntermediateRepresentation/TextureOperation.cs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/Ryujinx.Graphics.Shader/IntermediateRepresentation/TextureOperation.cs b/Ryujinx.Graphics.Shader/IntermediateRepresentation/TextureOperation.cs index 52f02bfb..b76d5dc6 100644 --- a/Ryujinx.Graphics.Shader/IntermediateRepresentation/TextureOperation.cs +++ b/Ryujinx.Graphics.Shader/IntermediateRepresentation/TextureOperation.cs @@ -2,30 +2,30 @@ namespace Ryujinx.Graphics.Shader.IntermediateRepresentation { class TextureOperation : Operation { - private const int DefaultCbufSlot = -1; + public const int DefaultCbufSlot = -1; - public SamplerType Type { get; private set; } + public SamplerType Type { get; private set; } + public TextureFormat Format { get; set; } public TextureFlags Flags { get; private set; } public int CbufSlot { get; private set; } - public int Handle { get; private set; } - public TextureFormat Format { get; set; } - public TextureOperation( - Instruction inst, - SamplerType type, - TextureFlags flags, - int handle, - int compIndex, - Operand dest, + Instruction inst, + SamplerType type, + TextureFormat format, + TextureFlags flags, + int handle, + int compIndex, + Operand dest, params Operand[] sources) : base(inst, compIndex, dest, sources) { - Type = type; - Flags = flags; + Type = type; + Format = format; + Flags = flags; CbufSlot = DefaultCbufSlot; - Handle = handle; + Handle = handle; } public void TurnIntoIndexed(int handle) @@ -45,7 +45,7 @@ namespace Ryujinx.Graphics.Shader.IntermediateRepresentation } CbufSlot = cbufSlot; - Handle = handle; + Handle = handle; } } }
\ No newline at end of file |
