mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-03-25 04:04:42 +01: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
27 lines
No EOL
815 B
C#
27 lines
No EOL
815 B
C#
namespace Ryujinx.Graphics.Shader
|
|
{
|
|
readonly struct TextureDefinition
|
|
{
|
|
public int Set { get; }
|
|
public int Binding { get; }
|
|
public string Name { get; }
|
|
public SamplerType Type { get; }
|
|
public TextureFormat Format { get; }
|
|
public TextureUsageFlags Flags { get; }
|
|
|
|
public TextureDefinition(int set, int binding, string name, SamplerType type, TextureFormat format, TextureUsageFlags flags)
|
|
{
|
|
Set = set;
|
|
Binding = binding;
|
|
Name = name;
|
|
Type = type;
|
|
Format = format;
|
|
Flags = flags;
|
|
}
|
|
|
|
public TextureDefinition SetFlag(TextureUsageFlags flag)
|
|
{
|
|
return new TextureDefinition(Set, Binding, Name, Type, Format, Flags | flag);
|
|
}
|
|
}
|
|
} |