D3DXPARAMETER_TYPE

Describes the data contained by the enumeration.

typedef enum D3DXPARAMETER_TYPE
{
    D3DXPT_VOID,
    D3DXPT_BOOL,
    D3DXPT_INT,
    D3DXPT_FLOAT,
    D3DXPT_STRING,
    D3DXPT_TEXTURE,
    D3DXPT_TEXTURE1D,
    D3DXPT_TEXTURE2D,
    D3DXPT_TEXTURE3D,
    D3DXPT_TEXTURECUBE,
    D3DXPT_SAMPLER,
    D3DXPT_SAMPLER1D,
    D3DXPT_SAMPLER2D,
    D3DXPT_SAMPLER3D,
    D3DXPT_SAMPLERCUBE,
    D3DXPT_PIXELSHADER,
    D3DXPT_VERTEXSHADER,
    D3DXPT_PIXELFRAGMENT,
    D3DXPT_VERTEXFRAGMENT,
    D3DXPT_FORCE_DWORD = 0x7fffffff,
} D3DXPARAMETER_TYPE, *LPD3DXPARAMETER_TYPE;

Constants

D3DXPT_VOID
Parameter is a void pointer.
D3DXPT_BOOL
Parameter is a Boolean. Any non-zero value passed into ID3DXConstantTable::SetBool, ID3DXConstantTable::SetBoolArray, ID3DXConstantTable::SetValue, ID3DXConstantTable::SetVector, or ID3DXConstantTable::SetVectorArray will be mapped to 1 (TRUE) before being written into the constant table; otherwise, the value will be set to 0 in the constant table.
D3DXPT_INT
Parameter is an integer. Any floating-point values passed into ID3DXConstantTable::SetValue, ID3DXConstantTable::SetVector, or ID3DXConstantTable::SetVectorArray will be rounded off (to zero decimal places) before being written into the constant table.
D3DXPT_FLOAT
Parameter is a floating-point number.
D3DXPT_STRING
Parameter is a string.
D3DXPT_TEXTURE
Parameter is a texture.
D3DXPT_TEXTURE1D
Parameter is a 1D texture.
D3DXPT_TEXTURE2D
Parameter is a 2D texture.
D3DXPT_TEXTURE3D
Parameter is a 3D texture.
D3DXPT_TEXTURECUBE
Parameter is a cube texture.
D3DXPT_SAMPLER
Parameter is a sampler.
D3DXPT_SAMPLER1D
Parameter is a 1D sampler.
D3DXPT_SAMPLER2D
Parameter is a 2D sampler.
D3DXPT_SAMPLER3D
Parameter is a 3D sampler.
D3DXPT_SAMPLERCUBE
Parameter is a cube sampler.
D3DXPT_PIXELSHADER
Parameter is a pixel shader.
D3DXPT_VERTEXSHADER
Parameter is a vertex shader.
D3DXPT_PIXELFRAGMENT
Parameter is a pixel shader fragment.
D3DXPT_VERTEXFRAGMENT
Parameter is a vertex shader fragment.
D3DXPT_FORCE_DWORD
Forces this enumeration to compile to 32 bits in size. Without this value, some compilers would allow this enumeration to compile to a size other than 32 bits. This value is not used.

See Also

D3DXSHADER_TYPEINFO, D3DXCONSTANT_DESC