HLSL: Add tx.GetDimensions method (uint returns only)

This commit is contained in:
LoopDawg 2016-07-15 11:22:24 -06:00
parent e4821e43c8
commit 5d58faecc0
9 changed files with 3199 additions and 7 deletions

View file

@ -0,0 +1,27 @@
SamplerState g_sSamp : register(s0);
uniform Texture1D <float4> g_tTex1df4 : register(t0);
struct VS_OUTPUT
{
float4 Pos : SV_Position;
};
VS_OUTPUT main()
{
VS_OUTPUT vsout;
uint WidthU;
uint NumberOfLevelsU;
// Most of the tests are in the hlsl.getdimensions.dx10.frag on the fragment side.
// This is just to establish that GetDimensions appears in the vertex stage.
// 1D, float tx, uint params
g_tTex1df4 . GetDimensions(WidthU);
g_tTex1df4 . GetDimensions(6, WidthU, NumberOfLevelsU);
vsout.Pos = float4(0,0,0,0);
return vsout;
}