ID3DXEffect

Used to set and query effects, and to choose techniques. An effect object can contain multiple techniques to render the same effect.

ID3DXEffect Members

ID3DXBaseEffect
   ID3DXEffect
   ID3DXEffectCompiler
Method Description
ID3DXEffect::ApplyParameterBlock Apply the values in a state block to the current effect system state.
ID3DXEffect::Begin Starts an active technique.
ID3DXEffect::BeginParameterBlock Start capturing state changes in a parameter block.
ID3DXEffect::BeginPass Begins a pass, within the active technique.
ID3DXEffect::CloneEffect Creates a copy of an effect.
ID3DXEffect::CommitChanges Propagate state changes that occur inside of an active pass to the device before rendering.
ID3DXEffect::DeleteParameterBlock Delete a parameter block.
ID3DXEffect::End Ends an active technique.
ID3DXEffect::EndParameterBlock Stop capturing effect parameter state changes.
ID3DXEffect::EndPass End an active pass.
ID3DXEffect::FindNextValidTechnique Searches for the next valid technique, starting at the technique after the specified technique.
ID3DXEffect::GetCurrentTechnique Gets the current technique.
ID3DXEffect::GetDevice Retrieves the device associated with the effect.
ID3DXEffect::GetPool Gets a pointer to the pool of shared parameters.
ID3DXEffect::GetStateManager Get the effect state manager.
ID3DXEffect::IsParameterUsed Determines if a parameter is used by the technique.
ID3DXEffect::OnLostDevice Use this method to release all references to video memory resources and delete all stateblocks. This method should be called whenever a device is lost, or before resetting a device.
ID3DXEffect::OnResetDevice Use this method to re-acquire resources and save initial state.
ID3DXEffect::SetRawValue Set a contiguous range of shader constants with a memory copy.
ID3DXEffect::SetStateManager Set the effect state manager.
ID3DXEffect::SetTechnique Sets the active technique.
ID3DXEffect::ValidateTechnique Validate a technique.

Remarks

The ID3DXEffect interface is obtained by calling D3DXCreateEffect, D3DXCreateEffectFromFile, or D3DXCreateEffectFromResource.

The LPD3DXEFFECT type is defined as a pointer to this interface.

typedef interface ID3DXEffect ID3DXEffect;
typedef interface ID3DXEffect *LPD3DXEFFECT;

See Also

D3DXCreateEffect, D3DXCreateEffectFromFile, D3DXCreateEffectFromResource

Requirements

Header: Declared in D3dx9effect.h.

Import Library: Use D3dx9.lib.