aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Shader/ShaderConfig.cs
blob: c2a94814e913abd55a6ce106137dd794f1a89a14 (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
using Ryujinx.Graphics.Gal;
using System;

namespace Ryujinx.Graphics.Shader
{
    public struct ShaderConfig
    {
        public GalShaderType Type { get; }

        public int MaxCBufferSize;

        public ShaderConfig(GalShaderType type, int maxCBufferSize)
        {
            if (maxCBufferSize <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(maxCBufferSize));
            }

            Type           = type;
            MaxCBufferSize = maxCBufferSize;
        }
    }
}