Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
D3D10_SHADER_VARIABLE_TYPE

D3D10_SHADER_VARIABLE_TYPE enumeration

These flags identify various data, texture, and buffer types that can be assigned to a shader variable.

Syntax


typedef enum D3D10_SHADER_VARIABLE_TYPE { 
  D3D10_SVT_VOID                       = 0,
  D3D10_SVT_BOOL                       = 1,
  D3D10_SVT_INT                        = 2,
  D3D10_SVT_FLOAT                      = 3,
  D3D10_SVT_STRING                     = 4,
  D3D10_SVT_TEXTURE                    = 5,
  D3D10_SVT_TEXTURE1D                  = 6,
  D3D10_SVT_TEXTURE2D                  = 7,
  D3D10_SVT_TEXTURE3D                  = 8,
  D3D10_SVT_TEXTURECUBE                = 9,
  D3D10_SVT_SAMPLER                    = 10,
  D3D10_SVT_PIXELSHADER                = 15,
  D3D10_SVT_VERTEXSHADER               = 16,
  D3D10_SVT_UINT                       = 19,
  D3D10_SVT_UINT8                      = 20,
  D3D10_SVT_GEOMETRYSHADER             = 21,
  D3D10_SVT_RASTERIZER                 = 22,
  D3D10_SVT_DEPTHSTENCIL               = 23,
  D3D10_SVT_BLEND                      = 24,
  D3D10_SVT_BUFFER                     = 25,
  D3D10_SVT_CBUFFER                    = 26,
  D3D10_SVT_TBUFFER                    = 27,
  D3D10_SVT_TEXTURE1DARRAY             = 28,
  D3D10_SVT_TEXTURE2DARRAY             = 29,
  D3D10_SVT_RENDERTARGETVIEW           = 30,
  D3D10_SVT_DEPTHSTENCILVIEW           = 31,
  D3D10_SVT_TEXTURE2DMS                = 32,
  D3D10_SVT_TEXTURE2DMSARRAY           = 33,
  D3D10_SVT_TEXTURECUBEARRAY           = 34,
  D3D11_SVT_HULLSHADER                 = 35,
  D3D11_SVT_DOMAINSHADER               = 36,
  D3D11_SVT_INTERFACE_POINTER          = 37,
  D3D11_SVT_COMPUTESHADER              = 38,
  D3D11_SVT_DOUBLE                     = 39,
  D3D11_SVT_RWTEXTURE1D,
  D3D11_SVT_RWTEXTURE1DARRAY,
  D3D11_SVT_RWTEXTURE2D,
  D3D11_SVT_RWTEXTURE2DARRAY,
  D3D11_SVT_RWTEXTURE3D,
  D3D11_SVT_RWBUFFER,
  D3D11_SVT_BYTEADDRESS_BUFFER,
  D3D11_SVT_RWBYTEADDRESS_BUFFER,
  D3D11_SVT_STRUCTURED_BUFFER,
  D3D11_SVT_RWSTRUCTURED_BUFFER,
  D3D11_SVT_APPEND_STRUCTURED_BUFFER,
  D3D11_SVT_CONSUME_STRUCTURED_BUFFER,
  D3D10_SVT_FORCE_DWORD                = 0x7fffffff
} D3D10_SHADER_VARIABLE_TYPE, *LPD3D10_SHADER_VARIABLE_TYPE;

Constants

D3D10_SVT_VOID

The variable is a void pointer.

D3D10_SVT_BOOL

The variable is a boolean.

D3D10_SVT_INT

The variable is a integer.

D3D10_SVT_FLOAT

The variable is a floating-point number.

D3D10_SVT_STRING

The variable is a string.

D3D10_SVT_TEXTURE

The variable is a texture.

D3D10_SVT_TEXTURE1D

The variable is a 1D texture.

D3D10_SVT_TEXTURE2D

The variable is a 2D texture.

D3D10_SVT_TEXTURE3D

The variable is a 3D texture.

D3D10_SVT_TEXTURECUBE

The variable is a texture cube.

D3D10_SVT_SAMPLER

The variable is a sampler.

D3D10_SVT_PIXELSHADER

The variable is a pixel shader.

D3D10_SVT_VERTEXSHADER

The variable is a vertex shader.

D3D10_SVT_UINT

The variable is an unsigned integer.

D3D10_SVT_UINT8

The variable is an 8-bit unsigned integer.

D3D10_SVT_GEOMETRYSHADER

The variable is a geometry shader.

D3D10_SVT_RASTERIZER

The variable is a rasterizer-state object.

D3D10_SVT_DEPTHSTENCIL

The variable is a depth-stencil-state object.

D3D10_SVT_BLEND

The variable is a blend-state object.

D3D10_SVT_BUFFER

The variable is a buffer.

D3D10_SVT_CBUFFER

The variable is a constant buffer.

D3D10_SVT_TBUFFER

The variable is a texture buffer.

D3D10_SVT_TEXTURE1DARRAY

The variable is a 1D-texture array.

D3D10_SVT_TEXTURE2DARRAY

The variable is a 2D-texture array.

D3D10_SVT_RENDERTARGETVIEW

The variable is a render-target view.

D3D10_SVT_DEPTHSTENCILVIEW

The variable is a depth-stencil view.

D3D10_SVT_TEXTURE2DMS

The variable is a 2D-multisampled texture.

D3D10_SVT_TEXTURE2DMSARRAY

The variable is a 2D-multisampled-texture array.

D3D10_SVT_TEXTURECUBEARRAY

The variable is a texture-cube array.

D3D11_SVT_HULLSHADER

The variable holds a compiled hull-shader binary.

D3D11_SVT_DOMAINSHADER

The variable holds a compiled domain-shader binary.

D3D11_SVT_INTERFACE_POINTER

The variable is an interface.

D3D11_SVT_COMPUTESHADER

The variable holds a compiled compute-shader binary.

D3D11_SVT_DOUBLE

The variable is a double precision (64-bit) floating-point number.

D3D11_SVT_RWTEXTURE1D

The variable is a 1D read-and-write texture.

D3D11_SVT_RWTEXTURE1DARRAY

The variable is an array of 1D read-and-write textures.

D3D11_SVT_RWTEXTURE2D

The variable is a 2D read-and-write texture.

D3D11_SVT_RWTEXTURE2DARRAY

The variable is an array of 2D read-and-write textures.

D3D11_SVT_RWTEXTURE3D

The variable is a 3D read-and-write texture.

D3D11_SVT_RWBUFFER

The variable is a read-and-write buffer.

D3D11_SVT_BYTEADDRESS_BUFFER

The variable is a byte-address buffer.

D3D11_SVT_RWBYTEADDRESS_BUFFER

The variable is a read-and-write byte-address buffer.

D3D11_SVT_STRUCTURED_BUFFER

The variable is a structured buffer.

For more information about structured buffer, see the Remarks section.

D3D11_SVT_RWSTRUCTURED_BUFFER

The variable is a read-and-write structured buffer.

D3D11_SVT_APPEND_STRUCTURED_BUFFER

The variable is an append structured buffer.

D3D11_SVT_CONSUME_STRUCTURED_BUFFER

The variable is a consume structured buffer.

D3D10_SVT_FORCE_DWORD

This value is not used by a programmer; it exists to force the enumeration to compile to 32 bits.

Remarks

These flags are used by a shader-type description (see D3D10_SHADER_TYPE_DESC) and an effect-type description (see D3D10_EFFECT_TYPE_DESC).

The types in a structured buffer describe the structure of the elements in the buffer. The layout of these types generally match their C++ struct counterparts. The following examples show structured buffers:


struct mystruct {float4 val; uint ind;}; RWStructuredBuffer<mystruct> rwbuf;
RWStructuredBuffer<float3> rwbuf2;

The D3D10_SHADER_VARIABLE_TYPE enumeration is type defined in the D3D10shader.h header file as a D3D_SHADER_VARIABLE_TYPE enumeration, which is fully defined in the D3DCommon.h header file.



typedef D3D_SHADER_VARIABLE_TYPE D3D10_SHADER_VARIABLE_TYPE;

Requirements

Header

D3D10Shader.h

See also

Shader Enumerations

 

 

Community Additions

ADD
Show:
© 2015 Microsoft