forked from microsoft/DirectXShaderCompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cast after RWByteAddressBuffer atomic compare exchange (microsoft…
…#5295) * Add cast after RWByteAddressBuffer atomic compare exchange The type of the RWByteAddressBuffer is always uint in the SPIR-V representation. This means that the OpAtomicCompareExchange instruction must have parameters and a result of type uint. If the original code used an in for the result, then there is a type mismatch when storing the value. This is fixed by add a cast when appropriate. Fixes microsoft#4741
- Loading branch information
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters