aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/TextureDescriptor.cs
blob: 1e387407d82800e86fb6c4784bd8ce3b553d83d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
namespace Ryujinx.Graphics.Shader
{
    public readonly struct TextureDescriptor
    {
        // New fields should be added to the end of the struct to keep disk shader cache compatibility.

        public readonly int Set;
        public readonly int Binding;

        public readonly SamplerType Type;
        public readonly TextureFormat Format;

        public readonly int CbufSlot;
        public readonly int HandleIndex;
        public readonly int ArrayLength;

        public readonly bool Separate;

        public readonly TextureUsageFlags Flags;

        public TextureDescriptor(
            int set,
            int binding,
            SamplerType type,
            TextureFormat format,
            int cbufSlot,
            int handleIndex,
            int arrayLength,
            bool separate,
            TextureUsageFlags flags)
        {
            Set = set;
            Binding = binding;
            Type = type;
            Format = format;
            CbufSlot = cbufSlot;
            HandleIndex = handleIndex;
            ArrayLength = arrayLength;
            Separate = separate;
            Flags = flags;
        }
    }
}