1SamplerState g_sSamp : register(s0); 2 3uniform Texture1D <float4> g_tTex1df4 : register(t0); 4 5struct VS_OUTPUT 6{ 7 float4 Pos : SV_Position; 8}; 9 10VS_OUTPUT main() 11{ 12 VS_OUTPUT vsout; 13 14 uint WidthU; 15 uint NumberOfLevelsU; 16 17 // Most of the tests are in the hlsl.getdimensions.dx10.frag on the fragment side. 18 // This is just to establish that GetDimensions appears in the vertex stage. 19 20 // 1D, float tx, uint params 21 g_tTex1df4 . GetDimensions(WidthU); 22 g_tTex1df4 . GetDimensions(6, WidthU, NumberOfLevelsU); 23 24 vsout.Pos = float4(0,0,0,0); 25 26 return vsout; 27} 28