aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/SamplerDeclaration.cs
blob: 9e0ecd7947e485fd69bc6779fe26ad6cc7d0c259 (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
using Spv.Generator;

namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
{
    readonly struct SamplerDeclaration
    {
        public readonly Instruction ImageType;
        public readonly Instruction SampledImageType;
        public readonly Instruction SampledImagePointerType;
        public readonly Instruction Image;
        public readonly bool IsIndexed;

        public SamplerDeclaration(
            Instruction imageType,
            Instruction sampledImageType,
            Instruction sampledImagePointerType,
            Instruction image,
            bool isIndexed)
        {
            ImageType = imageType;
            SampledImageType = sampledImageType;
            SampledImagePointerType = sampledImagePointerType;
            Image = image;
            IsIndexed = isIndexed;
        }
    }
}