aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/IntermediateRepresentation/Function.cs
blob: a5f3e0a8c4a8e7e246ee05364f583030656de653 (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;
        }
    }
}