HLSL: Flesh out the loop grammar and productions.
This commit is contained in:
8
Test/hlsl.forLoop.frag
Normal file
8
Test/hlsl.forLoop.frag
Normal file
@@ -0,0 +1,8 @@
|
||||
float4 PixelShaderFunction(float4 input) : COLOR0
|
||||
{
|
||||
for (;;) ;
|
||||
for (++input; ; ) ;
|
||||
[unroll] for (; input != input; ) {}
|
||||
for (; input != input; ) { return -input; }
|
||||
for (--input; input != input; input += 2) { return -input; }
|
||||
}
|
||||
Reference in New Issue
Block a user