hlsl.attribute.expression.comp 222 B

12345678910111213141516
  1. uniform int bound;
  2. #define FOO 3
  3. #define BAR 2
  4. [numthreads(2+2, 2*3, (1+FOO)*BAR)]
  5. float4 main() : SV_TARGET
  6. {
  7. [unroll(5*2 + 1) ]
  8. for (int x=0; x<bound; ++x)
  9. ;
  10. return float4(0,0,0,0);
  11. }