1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

[macOS / iOS] Use non atomic operation to store facing bits on MoltenVK.

This commit is contained in:
bruvzg
2021-11-24 11:29:27 +02:00
parent 4261fb3244
commit b7e6e50dd2

View File

@@ -1757,7 +1757,11 @@ void main() {
} }
} }
#ifdef MOLTENVK_USED
imageStore(geom_facing_grid, grid_pos, uvec4(imageLoad(geom_facing_grid, grid_pos).r | facing_bits)); //store facing bits
#else
imageAtomicOr(geom_facing_grid, grid_pos, facing_bits); //store facing bits imageAtomicOr(geom_facing_grid, grid_pos, facing_bits); //store facing bits
#endif
if (length(emission) > 0.001) { if (length(emission) > 0.001) {
float lumas[6]; float lumas[6];