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