lib_global3.hlsl 339 B

12345678910111213
  1. // Check redefine global and resource with lib_global2.hlsl, lib_global4.hlsl.
  2. RWBuffer<float> buf0;
  3. groupshared column_major float2x2 dataC[8*8];
  4. float2x2 MatRotate(float2x2 m, uint x, uint y) {
  5. buf0[x] = y;
  6. dataC[x%(8*8)] = m;
  7. GroupMemoryBarrierWithGroupSync();
  8. float2x2 f2x2 = dataC[8*8-1-y%(8*8)];
  9. return f2x2;
  10. }