aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/ShaderBindings.cs
blob: 6ab2938298b475a315691a5832c8d58a53f396f1 (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
using System.Collections.Generic;

namespace Ryujinx.Graphics.GAL
{
    public readonly struct ShaderBindings
    {
        public IReadOnlyCollection<int> UniformBufferBindings { get; }
        public IReadOnlyCollection<int> StorageBufferBindings { get; }
        public IReadOnlyCollection<int> TextureBindings { get; }
        public IReadOnlyCollection<int> ImageBindings { get; }

        public ShaderBindings(
            IReadOnlyCollection<int> uniformBufferBindings,
            IReadOnlyCollection<int> storageBufferBindings,
            IReadOnlyCollection<int> textureBindings,
            IReadOnlyCollection<int> imageBindings)
        {
            UniformBufferBindings = uniformBufferBindings;
            StorageBufferBindings = storageBufferBindings;
            TextureBindings = textureBindings;
            ImageBindings = imageBindings;
        }
    }
}