aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Instructions
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2020-07-30 02:53:23 -0300
committerGitHub <noreply@github.com>2020-07-30 15:53:23 +1000
commit636542d817b3403ae44b46a48a67cedc0c7b42c5 (patch)
tree718e27464fcc3fd5539c3c10e90f686436bed50c /Ryujinx.Graphics.Shader/Instructions
parentb3c051bbec58c667e0e9037c57300791775d84ea (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.cs6
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;