lib_res_bound1.hlsl 268 B

123456789101112131415
  1. struct S
  2. {
  3. float values;
  4. };
  5. ConstantBuffer<S> g_buf : register(b0);
  6. RWByteAddressBuffer b : register(u0);
  7. float Extern(uint dtid);
  8. [numthreads(31, 1, 1)]
  9. void main(uint dtid : SV_DispatchThreadId)
  10. {
  11. b.Store2(dtid * 4, float2(Extern(dtid), g_buf.values));
  12. }