ID3DX11Effect::GetVariableBySemantic method

Get a variable by semantic.

Syntax

ID3DX11EffectVariable* GetVariableBySemantic(
   LPCSTR Semantic
);

Parameters

Semantic

Type: LPCSTR

The semantic name.

Return value

Type: ID3DX11EffectVariable*

A pointer to the effect variable indicated by the Semantic. See ID3DX11EffectVariable.

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 ID3DX11Effect::IsValid to verify whether or not the semantic exists.

Note

The DirectX SDK does not supply any compiled binaries for effects. You must use Effects 11 source to build your effects-type application. For more information about using Effects 11 source, see Differences Between Effects 10 and Effects 11.

Requirements

Requirement Value
Header
D3dx11effect.h
Library
N/A (An Effects 11 library is available online as shared source.)

See also

ID3DX11Effect