Add partial support for array of samplers, and add pass to identify them from bindless texture accesses
This commit is contained in:
@ -2,10 +2,10 @@ namespace Ryujinx.Graphics.Shader.IntermediateRepresentation
|
||||
{
|
||||
class TextureOperation : Operation
|
||||
{
|
||||
public SamplerType Type { get; }
|
||||
public TextureFlags Flags { get; }
|
||||
public SamplerType Type { get; private set; }
|
||||
public TextureFlags Flags { get; private set; }
|
||||
|
||||
public int Handle { get; }
|
||||
public int Handle { get; private set; }
|
||||
|
||||
public TextureOperation(
|
||||
Instruction inst,
|
||||
@ -20,5 +20,14 @@ namespace Ryujinx.Graphics.Shader.IntermediateRepresentation
|
||||
Flags = flags;
|
||||
Handle = handle;
|
||||
}
|
||||
|
||||
public void TurnIntoIndexed(int handle)
|
||||
{
|
||||
Type |= SamplerType.Indexed;
|
||||
|
||||
Flags &= ~TextureFlags.Bindless;
|
||||
|
||||
Handle = handle;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user