From d125fce3e8c780c042040ac8064155cd6751d353 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 6 Jul 2021 16:20:06 -0300 Subject: Allow shader language and target API to be specified on the shader translator (#2402) --- Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs') diff --git a/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs b/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs index 85ac2836..b22eb5f1 100644 --- a/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs +++ b/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs @@ -29,7 +29,7 @@ namespace Ryujinx.Graphics.Shader.Translation public IGpuAccessor GpuAccessor { get; } - public TranslationFlags Flags { get; } + public TranslationOptions Options { get; } public int Size { get; private set; } @@ -94,18 +94,18 @@ namespace Ryujinx.Graphics.Shader.Translation public int FirstConstantBufferBinding { get; private set; } public int FirstStorageBufferBinding { get; private set; } - public ShaderConfig(IGpuAccessor gpuAccessor, TranslationFlags flags, TranslationCounts counts) + public ShaderConfig(IGpuAccessor gpuAccessor, TranslationOptions options, TranslationCounts counts) { Stage = ShaderStage.Compute; GpuAccessor = gpuAccessor; - Flags = flags; + Options = options; _counts = counts; TextureHandlesForCache = new HashSet(); _usedTextures = new Dictionary(); _usedImages = new Dictionary(); } - public ShaderConfig(ShaderHeader header, IGpuAccessor gpuAccessor, TranslationFlags flags, TranslationCounts counts) : this(gpuAccessor, flags, counts) + public ShaderConfig(ShaderHeader header, IGpuAccessor gpuAccessor, TranslationOptions options, TranslationCounts counts) : this(gpuAccessor, options, counts) { Stage = header.Stage; GpPassthrough = header.Stage == ShaderStage.Geometry && header.GpPassthrough; -- cgit v1.2.3