| 1234567891011121314151617181920212223242526 |
- 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 int Slot;
- public BufferUsageFlags Flags;
- public BufferDescriptor(int binding, int slot)
- {
- Binding = binding;
- Slot = slot;
- Flags = BufferUsageFlags.None;
- }
- public BufferDescriptor SetFlag(BufferUsageFlags flag)
- {
- Flags |= flag;
- return this;
- }
- }
- }
|