ID3D10EffectVariable::AsSampler method (d3d10effect.h)

Get a sampler variable.


ID3D10EffectSamplerVariable * AsSampler();

Return value

Type: ID3D10EffectSamplerVariable*

A pointer to a sampler variable. See ID3D10EffectSamplerVariable.


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

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


Target Platform Windows
Header d3d10effect.h

See also

ID3D10EffectVariable Interface