File: hlsl.array.frag

package info (click to toggle)
glslang 16.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 51,084 kB
  • sloc: cpp: 90,714; yacc: 4,243; sh: 603; python: 305; ansic: 94; javascript: 74; makefile: 17
file content (18 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
float4 a[4];

struct {
    float4 m[7];
} s[11];

static float4 C = float4(1,2,3,4);
float4 a1[1] = { float4(1,2,3,4) };
float4 a2[2] = { float4(1,2,3,4), float4(5,2,3,4), };
const float4 c1[1] = { float4(1,2,3,4) };
static const float4 c2[2] = { C, float4(1,2,3,4), };

float4 PixelShaderFunction(int i : sem1, float4 input[3] : sem2) : SV_TARGET0
{
    float4 b[10] = { C, C, C, C, C, C, C, C, C, C };
    float4 tmp = C + a1[0] + c1[0] + a2[i] + c2[i];
    return a[1] + a[i] + input[2] + input[i] + b[5] + b[i] + s[i].m[i] + tmp;
}