aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Shader/TextureDescriptor.cs
blob: 96f0f5b16de253ab2c2b9c9212129acb3ce43dcd (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
namespace Ryujinx.Graphics.Shader
{
    public struct TextureDescriptor
    {
        public string Name { get; }

        public int HandleIndex { get; }

        public bool IsBindless { get; }

        public int CbufSlot   { get; }
        public int CbufOffset { get; }

        public TextureDescriptor(string name, int hIndex)
        {
            Name        = name;
            HandleIndex = hIndex;

            IsBindless = false;

            CbufSlot   = 0;
            CbufOffset = 0;
        }

        public TextureDescriptor(string name, int cbufSlot, int cbufOffset)
        {
            Name        = name;
            HandleIndex = 0;

            IsBindless = true;

            CbufSlot   = cbufSlot;
            CbufOffset = cbufOffset;
        }
    }
}