You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Merge pull request #67746 from SonnyBonds/fix_cluster_shader_mvk
Fix cluster_render.glsl failing on some Macs
This commit is contained in:
@@ -142,7 +142,11 @@ void main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (!gl_HelperInvocation) {
|
// MoltenVK/Metal fails to compile shaders using gl_HelperInvocation for some GPUs
|
||||||
|
#ifndef MOLTENVK_USED
|
||||||
|
if (!gl_HelperInvocation)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
atomicOr(cluster_render.data[usage_write_offset], usage_write_bit);
|
atomicOr(cluster_render.data[usage_write_offset], usage_write_bit);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -162,7 +166,11 @@ void main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (!gl_HelperInvocation) {
|
// MoltenVK/Metal fails to compile shaders using gl_HelperInvocation for some GPUs
|
||||||
|
#ifndef MOLTENVK_USED
|
||||||
|
if (!gl_HelperInvocation)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
atomicOr(cluster_render.data[z_write_offset], z_write_bit);
|
atomicOr(cluster_render.data[z_write_offset], z_write_bit);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user