mirror of
https://github.com/Ryujinx-NX/Ryujinx.git
synced 2024-11-14 21:17:43 -07:00
33 lines
895 B
C#
33 lines
895 B
C#
namespace Ryujinx.Graphics.Shader.IntermediateRepresentation
|
|
{
|
|
class TextureOperation : Operation
|
|
{
|
|
public SamplerType Type { get; private set; }
|
|
public TextureFlags Flags { get; private set; }
|
|
|
|
public int Handle { get; private set; }
|
|
|
|
public TextureOperation(
|
|
Instruction inst,
|
|
SamplerType type,
|
|
TextureFlags flags,
|
|
int handle,
|
|
int compIndex,
|
|
Operand dest,
|
|
params Operand[] sources) : base(inst, compIndex, dest, sources)
|
|
{
|
|
Type = type;
|
|
Flags = flags;
|
|
Handle = handle;
|
|
}
|
|
|
|
public void TurnIntoIndexed(int handle)
|
|
{
|
|
Type |= SamplerType.Indexed;
|
|
|
|
Flags &= ~TextureFlags.Bindless;
|
|
|
|
Handle = handle;
|
|
}
|
|
}
|
|
} |