1struct S0 2{ 3 int x; 4 int y; 5 SamplerState ss; 6}; 7 8struct S1 9{ 10 float b; 11 SamplerState samplerState; 12 S0 s0; 13 int a; 14}; 15 16struct S2 17{ 18 int a1; 19 int a2; 20 int a3; 21 int a4; 22 int a5; 23 S1 resources; 24}; 25 26SamplerState samp; 27Texture2D tex; 28 29float4 main(float4 vpos : VPOS) : COLOR0 30{ 31 S1 s1; 32 S2 s2; 33 s1.s0.ss = samp; 34 s2.resources = s1; 35 return tex.Sample(s2.resources.s0.ss, float2(0.5)); 36} 37