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.aliasOpaque.frag
1
struct OS {
\r
2
SamplerState ss;
\r
3
float a;
\r
4
Texture2D tex;
\r
5
};
\r
6
\r
7
SamplerState gss;
\r
8
SamplerState gss2;
\r
9
Texture2D gtex;
\r
10
\r
11
float4 osCall(OS s)
\r
12
{
\r
13
return s.a * s.tex.Sample(s.ss, float2(0.2, 0.3));
\r
14
}
\r
15
\r
16
float4 main() : SV_TARGET0
\r
17
{
\r
18
OS os;
\r
19
os.ss = gss2;
\r
20
os.ss = gss;
\r
21
os.tex = gtex;
\r
22
os.a = 3.0;
\r
23
\r
24
// this should give an error
\r
25
//SamplerState localss;
\r
26
//localss = gss2;
\r
27
\r
28
return osCall(os);
\r
29
}
\r