aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/BufferDescriptor.cs
blob: a3af6e41f9318c2029b06f0cbce63c045921d87c (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
namespace Ryujinx.Graphics.Shader
{
    public struct BufferDescriptor
    {
        public readonly int Binding;
        public readonly int Slot;
        public BufferUsageFlags Flags;

        public BufferDescriptor(int binding, int slot)
        {
            Binding = binding;
            Slot = slot;

            Flags = BufferUsageFlags.None;
        }

        public BufferDescriptor SetFlag(BufferUsageFlags flag)
        {
            Flags |= flag;

            return this;
        }
    }
}