mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-14 08:26:40 +00:00
23 lines
516 B
C#
23 lines
516 B
C#
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|