projects
/
platform
/
upstream
/
glslang.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2892 from greg-lunarg/mb
[platform/upstream/glslang.git]
/
Test
/
hlsl.function.frag
1
float4 fun0()
\r
2
{
\r
3
return 1.0f;
\r
4
}
\r
5
\r
6
uint fun2(float4 col)
\r
7
{
\r
8
return 7;
\r
9
}
\r
10
\r
11
float4 fun4(uint id1, uniform uint id2)
\r
12
{
\r
13
return id1 * id2;
\r
14
}
\r
15
\r
16
float4 fun1(int index)
\r
17
{
\r
18
uint entityId = fun2(fun0());
\r
19
return fun4(entityId, entityId);
\r
20
}
\r
21
\r
22
int main() : SV_TARGET
\r
23
{
\r
24
return fun1;
\r
25
}