mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-30 02:00:48 -07:00
Initial work
This commit is contained in:
25
Ryujinx.Graphics.Shader/Translation/TranslationConfig.cs
Normal file
25
Ryujinx.Graphics.Shader/Translation/TranslationConfig.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using System;
|
||||
|
||||
namespace Ryujinx.Graphics.Shader.Translation
|
||||
{
|
||||
public struct TranslationConfig
|
||||
{
|
||||
public int MaxCBufferSize { get; }
|
||||
|
||||
public int Version { get; }
|
||||
|
||||
public TranslationFlags Flags { get; }
|
||||
|
||||
public TranslationConfig(int maxCBufferSize, int version, TranslationFlags flags)
|
||||
{
|
||||
if (maxCBufferSize <= 0)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException(nameof(maxCBufferSize));
|
||||
}
|
||||
|
||||
MaxCBufferSize = maxCBufferSize;
|
||||
Version = version;
|
||||
Flags = flags;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user