1 2sampler g_sam : register(t0); 3sampler2D g_sam2D : register(t1); 4 5struct VS_OUTPUT 6{ 7 float4 Pos : SV_Position; 8}; 9 10VS_OUTPUT main() 11{ 12 VS_OUTPUT vsout; 13 14 float4 PosOut = float4(0,0,0,0); 15 16 PosOut += tex2Dlod( g_sam , float4(0.3f, 0.4f, 0.0f, 1.0f)); 17 PosOut += tex2Dlod( g_sam2D, float4(0.5f, 0.6f, 0.0f, 1.0f)); 18 19 vsout.Pos = PosOut / 2.0f; 20 21 return vsout; 22} 23