summaryrefslogtreecommitdiff
path: root/servers/rendering/renderer_rd/shaders/effects
diff options
context:
space:
mode:
authorGordon MacPherson <gordon@gordonite.tech>2022-10-26 19:40:51 +0100
committerGordon MacPherson <gordon@gordonite.tech>2022-10-26 20:12:06 +0100
commit381d457a2abaa8a7f4218050c3d42c4310d53e16 (patch)
treeacdc55223e8b73260330a3969695007f4e7228e4 /servers/rendering/renderer_rd/shaders/effects
parent040f49ed6e71a6e7f23d763c4b56095cbf319ef7 (diff)
Ensure vulkan subgroups are disabled for MoltenVK
We found they don't work on intel macbooks properly at all. Possible future solutions: - update to moltenvk. - update to spirv may resolve it.
Diffstat (limited to 'servers/rendering/renderer_rd/shaders/effects')
-rw-r--r--servers/rendering/renderer_rd/shaders/effects/taa_resolve.glsl2
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/rendering/renderer_rd/shaders/effects/taa_resolve.glsl b/servers/rendering/renderer_rd/shaders/effects/taa_resolve.glsl
index b0a0839836..02566d8e35 100644
--- a/servers/rendering/renderer_rd/shaders/effects/taa_resolve.glsl
+++ b/servers/rendering/renderer_rd/shaders/effects/taa_resolve.glsl
@@ -32,7 +32,9 @@
// Based on Spartan Engine's TAA implementation (without TAA upscale).
// <https://github.com/PanosK92/SpartanEngine/blob/a8338d0609b85dc32f3732a5c27fb4463816a3b9/Data/shaders/temporal_antialiasing.hlsl>
+#ifndef MOLTENVK_USED
#define USE_SUBGROUPS
+#endif // MOLTENVK_USED
#define GROUP_SIZE 8
#define FLT_MIN 0.00000001