mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-10-02 16:50:20 -07:00

* Stop identifying shader textures with handle and cbuf, use binding instead * Remove now unused code * Consider image operations as having accurate type information too I don't know why that was not the case before * Fix missing unscale on InsertCoordNormalization, stop calling SetUsageFlagsForTextureQuery when not needed * Shader cache version bump * Change get texture methods to return descriptors created from ResourceManager state This is required to ensure that reserved textures and images will not be bound as a guest texture/image * Fix BindlessElimination.SetHandle inserting coords at the wrong place
29 lines
785 B
C#
29 lines
785 B
C#
using Ryujinx.Graphics.Shader.IntermediateRepresentation;
|
|
|
|
namespace Ryujinx.Graphics.Shader.StructuredIr
|
|
{
|
|
class AstTextureOperation : AstOperation
|
|
{
|
|
public SamplerType Type { get; }
|
|
public TextureFormat Format { get; }
|
|
public TextureFlags Flags { get; }
|
|
|
|
public int Binding { get; }
|
|
|
|
public AstTextureOperation(
|
|
Instruction inst,
|
|
SamplerType type,
|
|
TextureFormat format,
|
|
TextureFlags flags,
|
|
int binding,
|
|
int index,
|
|
params IAstNode[] sources) : base(inst, StorageKind.None, false, index, sources, sources.Length)
|
|
{
|
|
Type = type;
|
|
Format = format;
|
|
Flags = flags;
|
|
Binding = binding;
|
|
}
|
|
}
|
|
}
|