blob: 8b1cceff91f11ae7db6bcdb7853da48269378afc [file] [log] [blame]
John Kessenichf3150742017-06-02 16:28:39 -06001struct OS {
2 SamplerState ss;
3 float a;
4 Texture2D tex;
5};
6
7SamplerState gss;
8SamplerState gss2;
9Texture2D gtex;
10
11float4 osCall(OS s)
12{
13 return s.a * s.tex.Sample(s.ss, float2(0.2, 0.3));
14}
15
16float4 main() : SV_TARGET0
17{
18 OS os;
19 os.ss = gss2;
20 os.ss = gss;
21 os.tex = gtex;
22 os.a = 3.0;
23
24 // this should give an error
25 //SamplerState localss;
26 //localss = gss2;
27
28 return osCall(os);
29}