D3D10_PASS_SHADER_DESC structure (d3d10effect.h)

Describes an effect variable that contains a shader.

Syntax

typedef struct _D3D10_PASS_SHADER_DESC {
  ID3D10EffectShaderVariable *pShaderVariable;
  UINT                       ShaderIndex;
} D3D10_PASS_SHADER_DESC;

Members

pShaderVariable

Type: ID3D10EffectShaderVariable*

A pointer to the variable that the shader came from. If it is an inline shader assignment, the returned interface will be an anonymous shader variable, which is not retrievable any other way. Its name in the variable description will be "$Anonymous". If there is no assignment of this type in the pass block, this will point to a shader variable that returns false when IsValid is called.

ShaderIndex

Type: UINT

A zero-based array index; otherwise 0.

Remarks

To get a shader description, call a method like ID3D10EffectPass::GetVertexShaderDesc.

Requirements

Requirement Value
Header d3d10effect.h (include D3D10.h)

See also

Effect Structures (Direct3D 10)