diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-09-19 09:38:39 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-19 14:38:39 +0200 |
| commit | f08a280adef015e9a9a0e9273b4edffeb1157f3a (patch) | |
| tree | 26baeacb8b094e77aa0d8cde15073d12e080305a /Ryujinx.Graphics.Shader/CodeGen/Glsl/HelperFunctions/SwizzleAdd.glsl | |
| parent | 7379bc2f39557929f283a423fe7f4b7390d08261 (diff) | |
Use shader subgroup extensions if shader ballot is not supported (#2627)
* Use shader subgroup extensions if shader ballot is not supported
* Shader cache version bump + cleanup
* The type is still required on the table
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen/Glsl/HelperFunctions/SwizzleAdd.glsl')
| -rw-r--r-- | Ryujinx.Graphics.Shader/CodeGen/Glsl/HelperFunctions/SwizzleAdd.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/HelperFunctions/SwizzleAdd.glsl b/Ryujinx.Graphics.Shader/CodeGen/Glsl/HelperFunctions/SwizzleAdd.glsl index 7df3e57f..ed00dfec 100644 --- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/HelperFunctions/SwizzleAdd.glsl +++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/HelperFunctions/SwizzleAdd.glsl @@ -2,6 +2,6 @@ float Helper_SwizzleAdd(float x, float y, int mask) { vec4 xLut = vec4(1.0, -1.0, 1.0, 0.0); vec4 yLut = vec4(1.0, 1.0, -1.0, 1.0); - int lutIdx = mask >> int(gl_SubGroupInvocationARB & 3u) * 2; + int lutIdx = mask >> int($SUBGROUP_INVOCATION$ & 3u) * 2; return x * xLut[lutIdx] + y * yLut[lutIdx]; }
\ No newline at end of file |
