First Commit
This commit is contained in:
17
externals/glslang/Test/hlsl.promote.atomic.frag
vendored
Normal file
17
externals/glslang/Test/hlsl.promote.atomic.frag
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
RWBuffer<uint> s_uintbuff; // UINT RWBuffer ...
|
||||
|
||||
float4 main() : SV_Target
|
||||
{
|
||||
int Loc; // ... with INT variables
|
||||
int Inc;
|
||||
int Orig;
|
||||
|
||||
// This must select the uint flavor of SPIR-V atomic op, and promote
|
||||
// the other arguments as required. The output value from the
|
||||
// imageAtomicAdd AST will be converted to an int for 'Orig'.
|
||||
InterlockedAdd(s_uintbuff[Loc], Inc, Orig);
|
||||
|
||||
return float4(0,0,0,0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user