You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
program_source:170:87: warning: expression result unused
uint _449 = atomic_fetch_add_explicit((volatile thread atomic_uint*)&(gLightsCounter, 0), 1u, memory_order_relaxed);
^~~~~~~~~~~~~~
program_source:170:85: error: cannot take the address of an rvalue of type 'int'
uint _449 = atomic_fetch_add_explicit((volatile thread atomic_uint*)&(gLightsCounter, 0), 1u, memory_order_relaxed);
^ ~~~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered:
But when it is fixed in Metal, we'll still be generating incorrect code for this. But that's an issue with SPIRV-Cross, which MoltenVK uses to handle shader modules.
Version: 1.0.26
This GLSL code:
generates wrong MSL code:
The error:
[MoltenVK ERROR] VK_ERROR_INITIALIZATION_FAILED: Shader library compile failed (error code 3):
Compilation failed:
program_source:170:87: warning: expression result unused
uint _449 = atomic_fetch_add_explicit((volatile thread atomic_uint*)&(gLightsCounter, 0), 1u, memory_order_relaxed);
^~~~~~~~~~~~~~
program_source:170:85: error: cannot take the address of an rvalue of type 'int'
uint _449 = atomic_fetch_add_explicit((volatile thread atomic_uint*)&(gLightsCounter, 0), 1u, memory_order_relaxed);
^ ~~~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered: