UpdateCounter.hlsl 352 B

1234567891011121314151617
  1. // RUN: %fxc /Tps_5_0 %s /Fo %t.fxc
  2. // RUN: %dxbc2dxil %t.fxc /emit-llvm | %FileCheck %s -check-prefix=DXIL
  3. // DXIL: !{i32 0, %dx.types.i8x28 addrspace(1)* undef, !"U0", i32 0, i32 1, i32 1, i32 12, i1 false, i1 true
  4. struct Foo {
  5. float4 a;
  6. float3 b;
  7. };
  8. RWStructuredBuffer<Foo> buf2;
  9. int main() : SV_Target
  10. {
  11. return buf2.IncrementCounter();
  12. }