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
Description
The atomic functions like InterlockedAdd are suddenly not functioning anymore,
complaining that the destination cannot be converted to an int& or long& reference.
This affects both groupshared and RWTexture2D destinations (and probably all others too)
I'm at a loss why this is now suddenly happening when it worked perfectly all the time
test.hlsl:6:2: error: no matching function for call to 'InterlockedAdd'
InterlockedAdd(foo, 1.0);
^~~~~~~~~~~~~~
test.hlsl:6:2: note: candidate function not viable: no known conversion from '__attribute__((address_space(3))) float' to 'unsigned long long &' for 1st argument
InterlockedAdd(foo, 1.0);
^ ~~~
test.hlsl:6:2: note: candidate function not viable: no known conversion from '__attribute__((address_space(3))) float' to 'int &' for 1st argument
InterlockedAdd(foo, 1.0);
^ ~~~
Description
The atomic functions like InterlockedAdd are suddenly not functioning anymore,
complaining that the destination cannot be converted to an int& or long& reference.
This affects both groupshared and RWTexture2D destinations (and probably all others too)
I'm at a loss why this is now suddenly happening when it worked perfectly all the time
Steps to Reproduce
Test code:
dxc -E main -T cs_6_4 test.hlsl
Actual Behavior
The above code should compile successfully
Environment
The text was updated successfully, but these errors were encountered: