1c7a90ef35
* 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
31 lines
930 B
C#
31 lines
930 B
C#
namespace Ryujinx.Graphics.Shader
|
|
{
|
|
public struct BufferDescriptor
|
|
{
|
|
// New fields should be added to the end of the struct to keep disk shader cache compatibility.
|
|
|
|
public readonly int Binding;
|
|
public readonly byte Slot;
|
|
public readonly byte SbCbSlot;
|
|
public readonly ushort SbCbOffset;
|
|
public readonly BufferUsageFlags Flags;
|
|
|
|
public BufferDescriptor(int binding, int slot)
|
|
{
|
|
Binding = binding;
|
|
Slot = (byte)slot;
|
|
SbCbSlot = 0;
|
|
SbCbOffset = 0;
|
|
Flags = BufferUsageFlags.None;
|
|
}
|
|
|
|
public BufferDescriptor(int binding, int slot, int sbCbSlot, int sbCbOffset, BufferUsageFlags flags)
|
|
{
|
|
Binding = binding;
|
|
Slot = (byte)slot;
|
|
SbCbSlot = (byte)sbCbSlot;
|
|
SbCbOffset = (ushort)sbCbOffset;
|
|
Flags = flags;
|
|
}
|
|
}
|
|
}
|