ID3D10Effect::GetVariableBySemantic method (d3d10effect.h)
Get a variable by semantic.
Syntax
ID3D10EffectVariable * GetVariableBySemantic(
[in] LPCSTR Semantic
);
Parameters
[in] Semantic
Type: LPCSTR
The semantic name.
Return value
Type: ID3D10EffectVariable*
A pointer to the effect variable indicated by the Semantic. See ID3D10EffectVariable Interface.
Remarks
Each effect variable can have a semantic attached, which is a user defined metadata string. Some system-value semantics are reserved words that trigger built in functionality by pipeline stages.
The method returns a pointer to an effect-variable interface if a variable is not found; you can call ID3D10Effect::IsValid to verify whether or not the semantic exists.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d10effect.h |