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 #2908 from Biswa96/cmake-spirv-remap
[platform/upstream/glslang.git]
/
Test
/
hlsl.entry-in.frag
1
struct InParam {
2
float2 v;
3
float4 fragCoord : SV_POSITION;
4
int2 i2;
5
};
6
7
float fun(InParam p)
8
{
9
return p.v.y + p.fragCoord.x;
10
}
11
12
float4 PixelShaderFunction(InParam i) : COLOR0
13
{
14
InParam local;
15
local = i;
16
float ret1 = fun(local);
17
float ret2 = fun(i);
18
19
return local.fragCoord * ret1 * ret2;
20
}