29 Texture2D <s1_t> g_tTex2s1;
30 Texture2D <s2_t> g_tTex2s2;
31 Texture2D <s3_t> g_tTex2s3;
32 Texture2D <s4_t> g_tTex2s4;
33 Texture2D <s5_t> g_tTex2s5;
35 Texture2D <s1_t> g_tTex2s1a; // same type as g_tTex2s1, to test fn signature matching.
37 // function overloading to test name mangling with textures templatized on structs
38 s1_t fn1(Texture2D <s1_t> t1) { return t1 . Sample(g_sSamp, float2(0.6, 0.61)); }
39 s2_t fn1(Texture2D <s2_t> t2) { return t2 . Sample(g_sSamp, float2(0.6, 0.61)); }
41 float4 main() : SV_Target0
43 s1_t s1 = g_tTex2s1 . Sample(g_sSamp, float2(0.1, 0.11));
44 s2_t s2 = g_tTex2s2 . Sample(g_sSamp, float2(0.2, 0.21));
45 s3_t s3 = g_tTex2s3 . Sample(g_sSamp, float2(0.3, 0.31));
46 s4_t s4 = g_tTex2s4 . Sample(g_sSamp, float2(0.4, 0.41));
47 s5_t s5 = g_tTex2s5 . Sample(g_sSamp, float2(0.5, 0.51));
49 s1_t r0 = fn1(g_tTex2s1);
50 s2_t r1 = fn1(g_tTex2s2);
51 s1_t r2 = fn1(g_tTex2s1a);