multiUAVLoad7.hlsl 361 B

123456789101112131415
  1. // RUN: %dxilver 1.1 | %dxc -E main -T cs_6_0 %s | FileCheck %s
  2. // CHECK-NOT: Typed UAV Load Additional Formats
  3. struct SUnaryFPOp {
  4. float input;
  5. float output;
  6. };
  7. RWStructuredBuffer<SUnaryFPOp> g_buf : register(u0);
  8. [numthreads(8,8,1)]
  9. void main(uint GI : SV_GroupIndex) {
  10. SUnaryFPOp l = g_buf[GI];
  11. l.output = sin(l.input);
  12. g_buf[GI] = l;
  13. }