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 #2891 from dneto0/hlsl-namespace
[platform/upstream/glslang.git]
/
Test
/
hlsl.targetStruct2.frag
1
struct PSInput {
\r
2
float interp;
\r
3
uint no_interp;
\r
4
};
\r
5
\r
6
struct PSOutput {
\r
7
float4 o1 : SV_TARGET1;
\r
8
float4 o2 : SV_TARGET0;
\r
9
};
\r
10
\r
11
PSOutput main(PSInput input : INPUT, out float4 po : SV_TARGET0) : SV_TARGET2
\r
12
{
\r
13
PSOutput pso;
\r
14
pso.o1 = float4(float(input.no_interp), input.interp, 0, 1);
\r
15
pso.o2 = 1;
\r
16
po = 0;
\r
17
\r
18
return pso;
\r
19
}