TextureDescriptor.cs 803 B

123456789101112131415161718192021222324252627
  1. namespace Ryujinx.Graphics.Shader
  2. {
  3. public readonly struct TextureDescriptor
  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 SamplerType Type;
  8. public readonly TextureFormat Format;
  9. public readonly int CbufSlot;
  10. public readonly int HandleIndex;
  11. public readonly TextureUsageFlags Flags;
  12. public TextureDescriptor(int binding, SamplerType type, TextureFormat format, int cbufSlot, int handleIndex, TextureUsageFlags flags)
  13. {
  14. Binding = binding;
  15. Type = type;
  16. Format = format;
  17. CbufSlot = cbufSlot;
  18. HandleIndex = handleIndex;
  19. Flags = flags;
  20. }
  21. }
  22. }