D3DSAMPLER_TEXTURE_TYPE enumeration

Defines the sampler texture types for vertex shaders.

Syntax


typedef enum D3DSAMPLER_TEXTURE_TYPE { 
  D3DSTT_UNKNOWN,
  D3DSTT_2D,
  D3DSTT_CUBE,
  D3DSTT_VOLUME,
  D3DSTT_FORCE_DWORD
} D3DSAMPLER_TEXTURE_TYPE, *LPD3DSAMPLER_TEXTURE_TYPE;

Constants

D3DSTT_UNKNOWN

Uninitialized value. The value of this element is D3DSP_TEXTURETYPE_SHIFT.

D3DSTT_2D

Declaring a 2D texture. The value of this element is D3DSP_TEXTURETYPE_SHIFT * 4.

D3DSTT_CUBE

Declaring a cube texture. The value of this element is D3DSP_TEXTURETYPE_SHIFT * 8.

D3DSTT_VOLUME

Declaring a volume texture. The value of this element is D3DSP_TEXTURETYPE_SHIFT * 16.

D3DSTT_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.

Requirements

Header

D3D9Types.h

See also

Direct3D Enumerations

 

 

Show: