Browse Source

updated test to test atomic float add and test results

Randall C. O'Reilly 2 năm trước cách đây
mục cha
commit
6d41bb9c55
2 tập tin đã thay đổi với 414 bổ sung402 xóa
  1. 410 402
      Test/baseResults/hlsl.intrinsics.comp.out
  2. 4 0
      Test/hlsl.intrinsics.comp

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 410 - 402
Test/baseResults/hlsl.intrinsics.comp.out


+ 4 - 0
Test/hlsl.intrinsics.comp

@@ -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;

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác