File: hlsl.function.frag

package info (click to toggle)
glslang 16.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 50,520 kB
  • sloc: cpp: 88,987; yacc: 4,227; sh: 603; python: 305; ansic: 94; javascript: 74; makefile: 17
file content (30 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
float4 fun0()
{
    return 1.0f;
}

float4 fun2(float4 const col)
{
    return (1.0f, 2.0f, 3.0f, 4.0f);
}

uint fun3(const float4 col)
{
	return 7;   
}

float4 fun4(uint id1, uniform uint id2)
{
    return id1 * id2;
}

float4 fun1(int index)
{
    uint entityId = fun3(fun2(fun0()));
    return fun4(entityId, entityId);
}

int main() : SV_TARGET
{
    return fun1;
}