Simplify logic for bindless texture handling (#1667)
* Simplify logic for bindless texture handling * Nits
This commit is contained in:
parent
eda6b78894
commit
934a78005e
16 changed files with 131 additions and 191 deletions
|
@ -8,6 +8,7 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
|
|||
public TextureFormat Format { get; }
|
||||
public TextureFlags Flags { get; }
|
||||
|
||||
public int CbufSlot { get; }
|
||||
public int Handle { get; }
|
||||
public int ArraySize { get; }
|
||||
|
||||
|
@ -16,6 +17,7 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
|
|||
SamplerType type,
|
||||
TextureFormat format,
|
||||
TextureFlags flags,
|
||||
int cbufSlot,
|
||||
int handle,
|
||||
int arraySize,
|
||||
int index,
|
||||
|
@ -24,6 +26,7 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
|
|||
Type = type;
|
||||
Format = format;
|
||||
Flags = flags;
|
||||
CbufSlot = cbufSlot;
|
||||
Handle = handle;
|
||||
ArraySize = arraySize;
|
||||
}
|
||||
|
|
|
@ -117,6 +117,7 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
|
|||
texOp.Type,
|
||||
texOp.Format,
|
||||
texOp.Flags,
|
||||
texOp.CbufSlot,
|
||||
texOp.Handle,
|
||||
4, // TODO: Non-hardcoded array size.
|
||||
texOp.Index,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue