aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/StructuredIr/AstTextureOperation.cs
blob: cdb974880568e12c53eebe42be18dd2910cb130e (plain)
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
using Ryujinx.Graphics.Shader.IntermediateRepresentation;

namespace Ryujinx.Graphics.Shader.StructuredIr
{
    class AstTextureOperation : AstOperation
    {
        public SamplerType   Type   { get; }
        public TextureFormat Format { get; }
        public TextureFlags  Flags  { get; }

        public int CbufSlot  { get; }
        public int Handle    { get; }
        public int ArraySize { get; }

        public AstTextureOperation(
            Instruction       inst,
            SamplerType       type,
            TextureFormat     format,
            TextureFlags      flags,
            int               cbufSlot,
            int               handle,
            int               arraySize,
            int               index,
            params IAstNode[] sources) : base(inst, index, sources, sources.Length)
        {
            Type      = type;
            Format    = format;
            Flags     = flags;
            CbufSlot  = cbufSlot;
            Handle    = handle;
            ArraySize = arraySize;
        }
    }
}