1 2Texture2DMS <float> g_tTex2dmsf1; 3Texture2DMS <float2> g_tTex2dmsf2; 4Texture2DMS <float3> g_tTex2dmsf3; 5Texture2DMS <float4> g_tTex2dmsf4; 6 7Texture2D <float> g_tTex2df1; 8Texture2D <float2> g_tTex2df2; 9Texture2D <float3> g_tTex2df3; 10Texture2D <float4> g_tTex2df4; 11 12SamplerState g_sSamp; 13 14float4 main() : SV_Target0 15{ 16 uint MipLevel; 17 uint WidthU; 18 uint HeightU; 19 uint ElementsU; 20 uint DepthU; 21 uint NumberOfLevelsU; 22 uint NumberOfSamplesU; 23 24 g_tTex2dmsf1 . GetDimensions(WidthU, HeightU, NumberOfSamplesU); 25 g_tTex2dmsf2 . GetDimensions(WidthU, HeightU, NumberOfSamplesU); 26 g_tTex2dmsf3 . GetDimensions(WidthU, HeightU, NumberOfSamplesU); 27 g_tTex2dmsf4 . GetDimensions(WidthU, HeightU, NumberOfSamplesU); 28 29 g_tTex2dmsf1 . Load(int2(1,2), 3); 30 g_tTex2dmsf2 . Load(int2(1,2), 3); 31 g_tTex2dmsf3 . Load(int2(1,2), 3); 32 g_tTex2dmsf4 . Load(int2(1,2), 3); 33 34 g_tTex2df1 . Sample(g_sSamp, float2(.1, .2)); 35 g_tTex2df2 . Sample(g_sSamp, float2(.1, .2)); 36 g_tTex2df3 . Sample(g_sSamp, float2(.1, .2)); 37 g_tTex2df4 . Sample(g_sSamp, float2(.1, .2)); 38 39 return 0; 40} 41 42