1 2struct PS_OUTPUT { float4 color : SV_Target0; }; 3 4int i; 5uint u; 6float f; 7bool b; 8 9int2 i2; 10uint2 u2; 11float2 f2; 12bool2 b2; 13 14Buffer <float> g_tTexbfs; 15Texture1D <float4> g_tTex1df4; 16uint upos; 17float fpos; 18 19PS_OUTPUT main() 20{ 21 int MipLevel; 22 23 uint WidthU; 24 uint HeightU; 25 uint ElementsU; 26 uint DepthU; 27 uint NumberOfLevelsU; 28 uint NumberOfSamplesU; 29 30 int WidthI; 31 int HeightI; 32 int ElementsI; 33 int DepthI; 34 int NumberOfLevelsI; 35 int NumberOfSamplesI; 36 37 saturate(fpos); 38 39 // Test output promotions 40 g_tTex1df4 . GetDimensions(WidthI); 41 g_tTex1df4 . GetDimensions(6, WidthI, NumberOfLevelsU); 42 g_tTex1df4 . GetDimensions(6, WidthU, NumberOfLevelsI); 43 g_tTex1df4 . GetDimensions(6, WidthI, NumberOfLevelsI); 44 45 // max(i2, f2); 46 PS_OUTPUT ps_output; 47 ps_output.color = 0; 48 return ps_output; 49}; 50