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

* Add support for bindless textures from shader input (vertex buffer) * Shader cache version bump * Format whitespace * Remove cache entries on pool removal, disable for OpenGL * PR feedback
34 lines
961 B
C#
34 lines
961 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 int SamplerBinding { get; }
|
|
|
|
public bool IsSeparate => SamplerBinding >= 0;
|
|
|
|
public AstTextureOperation(
|
|
Instruction inst,
|
|
SamplerType type,
|
|
TextureFormat format,
|
|
TextureFlags flags,
|
|
int binding,
|
|
int samplerBinding,
|
|
int index,
|
|
params IAstNode[] sources) : base(inst, StorageKind.None, false, index, sources, sources.Length)
|
|
{
|
|
Type = type;
|
|
Format = format;
|
|
Flags = flags;
|
|
Binding = binding;
|
|
SamplerBinding = samplerBinding;
|
|
}
|
|
}
|
|
}
|