ID3D10EffectVariable::AsConstantBuffer method (d3d10effect.h)

Get a constant buffer.

Syntax

ID3D10EffectConstantBuffer * AsConstantBuffer();

Return value

Type: ID3D10EffectConstantBuffer*

A pointer to a constant buffer. See ID3D10EffectConstantBuffer.

Remarks

AsConstantBuffer returns a version of the effect variable that has been specialized to a constant buffer. Similar to a cast, this specialization will return an invalid object if the effect variable does not contain constant buffer data.

Applications can test the returned object for validity by calling IsValid.

Requirements

Requirement Value
Target Platform Windows
Header d3d10effect.h

See also

ID3D10EffectVariable Interface