BufferDescriptor.cs 612 B

1234567891011121314151617181920212223242526
  1. namespace Ryujinx.Graphics.Shader
  2. {
  3. public struct BufferDescriptor
  4. {
  5. // New fields should be added to the end of the struct to keep disk shader cache compatibility.
  6. public readonly int Binding;
  7. public readonly int Slot;
  8. public BufferUsageFlags Flags;
  9. public BufferDescriptor(int binding, int slot)
  10. {
  11. Binding = binding;
  12. Slot = slot;
  13. Flags = BufferUsageFlags.None;
  14. }
  15. public BufferDescriptor SetFlag(BufferUsageFlags flag)
  16. {
  17. Flags |= flag;
  18. return this;
  19. }
  20. }
  21. }