diff options
author | Gordon MacPherson <gordon@gordonite.tech> | 2022-10-26 19:40:51 +0100 |
---|---|---|
committer | Gordon MacPherson <gordon@gordonite.tech> | 2022-10-26 20:12:06 +0100 |
commit | 381d457a2abaa8a7f4218050c3d42c4310d53e16 (patch) | |
tree | acdc55223e8b73260330a3969695007f4e7228e4 /servers/rendering/renderer_rd/shaders/cluster_render.glsl | |
parent | 040f49ed6e71a6e7f23d763c4b56095cbf319ef7 (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/cluster_render.glsl')
-rw-r--r-- | servers/rendering/renderer_rd/shaders/cluster_render.glsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/shaders/cluster_render.glsl b/servers/rendering/renderer_rd/shaders/cluster_render.glsl index 2fe230f0bf..932312de82 100644 --- a/servers/rendering/renderer_rd/shaders/cluster_render.glsl +++ b/servers/rendering/renderer_rd/shaders/cluster_render.glsl @@ -64,7 +64,7 @@ void main() { #version 450 #VERSION_DEFINES - +#ifndef MOLTENVK_USED // Metal will corrupt GPU state otherwise #if defined(has_GL_KHR_shader_subgroup_ballot) && defined(has_GL_KHR_shader_subgroup_arithmetic) && defined(has_GL_KHR_shader_subgroup_vote) #extension GL_KHR_shader_subgroup_ballot : enable @@ -73,6 +73,7 @@ void main() { #define USE_SUBGROUPS #endif +#endif layout(location = 0) in float depth_interp; layout(location = 1) in flat uint element_index; |