glslang/Test/hlsl.array.frag

11 lines
203 B
GLSL
Raw Normal View History

2016-06-19 17:50:34 +00:00
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];
}