repo.or.cz
/
glslang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ci: Remove gcc from macos matrix
[glslang.git]
/
Test
/
hlsl.entry-out.frag
blob
27b4dd6428cde5293d2a908eafab4c0510bc4bf6
1
struct OutParam {
2
float2 v;
3
int2 i;
4
};
5
6
void fun(out OutParam op)
7
{
8
op.v = float2(0.4);
9
op.i = int2(7);
10
}
11
12
float4 PixelShaderFunction(float4 input, out float4 out1, out OutParam out2, out OutParam out3) : COLOR0
13
{
14
out1 = input;
15
out2.v = 2.0;
16
out2.i = 3;
17
OutParam local;
18
local.v = 12.0;
19
local.i = 13;
20
fun(out3);
21
22
return out1;
23
}