aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/IntermediateRepresentation/Function.cs
blob: e535c3fc2e3976bbd5bbd4f68e91884ce4d59b6f (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
namespace Ryujinx.Graphics.Shader.IntermediateRepresentation
{
    class Function
    {
        public BasicBlock[] Blocks { get; }

        public string Name { get; }

        public bool ReturnsValue { get; }

        public int InArgumentsCount { get; }
        public int OutArgumentsCount { get; }

        public Function(BasicBlock[] blocks, string name, bool returnsValue, int inArgumentsCount, int outArgumentsCount)
        {
            Blocks = blocks;
            Name = name;
            ReturnsValue = returnsValue;
            InArgumentsCount = inArgumentsCount;
            OutArgumentsCount = outArgumentsCount;
        }
    }
}