TextureDescriptor.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 Set;
  7. public readonly int Binding;
  8. public readonly SamplerType Type;
  9. public readonly TextureFormat Format;
  10. public readonly int CbufSlot;
  11. public readonly int HandleIndex;
  12. public readonly int ArrayLength;
  13. public readonly bool Separate;
  14. public readonly TextureUsageFlags Flags;
  15. public TextureDescriptor(
  16. int set,
  17. int binding,
  18. SamplerType type,
  19. TextureFormat format,
  20. int cbufSlot,
  21. int handleIndex,
  22. int arrayLength,
  23. bool separate,
  24. TextureUsageFlags flags)
  25. {
  26. Set = set;
  27. Binding = binding;
  28. Type = type;
  29. Format = format;
  30. CbufSlot = cbufSlot;
  31. HandleIndex = handleIndex;
  32. ArrayLength = arrayLength;
  33. Separate = separate;
  34. Flags = flags;
  35. }
  36. }
  37. }