mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-11-19 10:50:52 -05: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
28 lines
794 B
C#
28 lines
794 B
C#
namespace Ryujinx.Graphics.Shader
|
|
{
|
|
public struct TextureDescriptor
|
|
{
|
|
// New fields should be added to the end of the struct to keep disk shader cache compatibility.
|
|
|
|
public readonly int Binding;
|
|
|
|
public readonly SamplerType Type;
|
|
public readonly TextureFormat Format;
|
|
|
|
public readonly int CbufSlot;
|
|
public readonly int HandleIndex;
|
|
|
|
public readonly TextureUsageFlags Flags;
|
|
|
|
public TextureDescriptor(int binding, SamplerType type, TextureFormat format, int cbufSlot, int handleIndex, TextureUsageFlags flags)
|
|
{
|
|
Binding = binding;
|
|
Type = type;
|
|
Format = format;
|
|
CbufSlot = cbufSlot;
|
|
HandleIndex = handleIndex;
|
|
Flags = flags;
|
|
}
|
|
}
|
|
}
|