aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/StructuredIr/StructureType.cs
blob: fdf824f5793160606c88a766deca1be1316d8b4d (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
using Ryujinx.Graphics.Shader.Translation;

namespace Ryujinx.Graphics.Shader.StructuredIr
{
    readonly struct StructureField
    {
        public AggregateType Type { get; }
        public string Name { get; }
        public int ArrayLength { get; }

        public StructureField(AggregateType type, string name, int arrayLength = 1)
        {
            Type = type;
            Name = name;
            ArrayLength = arrayLength;
        }
    }

    class StructureType
    {
        public StructureField[] Fields { get; }

        public StructureType(StructureField[] fields)
        {
            Fields = fields;
        }
    }
}