mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
updated test to test atomic float add and test results
This commit is contained in:
parent
ae55d83a88
commit
6d41bb9c55
File diff suppressed because it is too large
Load Diff
@ -12,6 +12,8 @@ groupshared uint3 gs_uc3;
|
||||
groupshared uint4 gs_ua4;
|
||||
groupshared uint4 gs_ub4;
|
||||
groupshared uint4 gs_uc4;
|
||||
groupshared float gs_fa;
|
||||
groupshared float gs_fb;
|
||||
|
||||
float ComputeShaderFunctionS(float inF0, float inF1, float inF2, uint inU0, uint inU1)
|
||||
{
|
||||
@ -36,6 +38,8 @@ float ComputeShaderFunctionS(float inF0, float inF1, float inF2, uint inU0, uint
|
||||
InterlockedXor(gs_ua, gs_ub);
|
||||
InterlockedXor(gs_ua, gs_ub, out_u1);
|
||||
|
||||
InterlockedAdd(gs_fa, gs_fb);
|
||||
|
||||
// CheckAccessFullyMapped(3); // TODO: ...
|
||||
|
||||
return 0.0;
|
||||
|
Loading…
Reference in New Issue
Block a user