ID3D10EffectVariable::AsRenderTargetView method

Get a render-target-view variable.

Syntax

ID3D10EffectRenderTargetViewVariable * AsRenderTargetView();

Parameters

This method has no parameters.

Return value

Type: ID3D10EffectRenderTargetViewVariable*

A pointer to a render-target-view variable. See ID3D10EffectRenderTargetViewVariable Interface.

Remarks

This method returns a version of the effect variable that has been specialized to a render-target-view variable. Similar to a cast, this specialization will return an invalid object if the effect variable does not contain render-target-view data.

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

Requirements

   
Target Platform Windows
Header d3d10effect.h

See also

ID3D10EffectVariable Interface