bgfx/3rdparty/glslang/Test/hlsl.attribute.expression.comp
Branimir Karadžić f46d6a5803 Added glslang.
2016-12-15 14:19:54 -08:00

16 lines
222 B
Plaintext

uniform int bound;
#define FOO 3
#define BAR 2
[numthreads(2+2, 2*3, (1+FOO)*BAR)]
float4 main() : SV_TARGET
{
[unroll(5*2 + 1) ]
for (int x=0; x<bound; ++x)
;
return float4(0,0,0,0);
}