diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-07-30 02:53:23 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-30 15:53:23 +1000 |
| commit | 636542d817b3403ae44b46a48a67cedc0c7b42c5 (patch) | |
| tree | 718e27464fcc3fd5539c3c10e90f686436bed50c /Ryujinx.Graphics.Shader/Instructions | |
| parent | b3c051bbec58c667e0e9037c57300791775d84ea (diff) | |
Refactor shader translator ShaderConfig and reduce the number of out args (#1438)
Diffstat (limited to 'Ryujinx.Graphics.Shader/Instructions')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs index ea153b11..77e3fae7 100644 --- a/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs +++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs @@ -283,14 +283,14 @@ namespace Ryujinx.Graphics.Shader.Instructions public static void Tld(EmitterContext context) { - context.UsedFeatures |= FeatureFlags.IntegerSampling; + context.Config.SetUsedFeature(FeatureFlags.IntegerSampling); EmitTextureSample(context, TextureFlags.IntCoords); } public static void TldB(EmitterContext context) { - context.UsedFeatures |= FeatureFlags.IntegerSampling; + context.Config.SetUsedFeature(FeatureFlags.IntegerSampling); EmitTextureSample(context, TextureFlags.IntCoords | TextureFlags.Bindless); } @@ -432,7 +432,7 @@ namespace Ryujinx.Graphics.Shader.Instructions return; } - context.UsedFeatures |= FeatureFlags.IntegerSampling; + context.Config.SetUsedFeature(FeatureFlags.IntegerSampling); flags = ConvertTextureFlags(tldsOp.Target) | TextureFlags.IntCoords; |
