HLSL: Basic array grammar.

This commit is contained in:
John Kessenich
2016-06-19 11:50:34 -06:00
parent 93a162a857
commit 19b92fff7e
6 changed files with 254 additions and 9 deletions

11
Test/hlsl.array.frag Normal file
View File

@@ -0,0 +1,11 @@
float4 a[4];
struct {
float4 m[7];
} s[11];
float4 PixelShaderFunction(int i, float4 input[3]) : COLOR0
{
float4 b[10];
return a[1] + a[i] + input[2] + input[i] + b[5] + b[i] + s[i].m[i];
}