ID3DXEffect::FindNextValidTechnique

DirectX8

ID3DXEffect::FindNextValidTechnique
 
Microsoft DirectX 8.1 (C++)

ID3DXEffect::FindNextValidTechnique

Searches for the next valid technique starting at the technique specified.

HRESULT FindNextValidTechnique(
  LPCSTR              pTechnique,
  D3DXTECHNIQUE_DESC* pDesc
);

Parameters

pTechnique
[in] The technique to start at.
pDesc
[out, retval] Pointer to a D3DXTECHNIQUE_DESC structure, containing the returned technique.

Return Values

If the method succeeds, the return value is S_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.

Remarks

This method is equivalent to iterating through each techniques, and calling ID3DXEffect::SetTechnique and ID3DXEffect::Validate.

Requirements

  Header: Declared in D3dx8effect.h.
  Import Library: Use D3dx8.lib.

See Also

D3DXEFFECT_DESC, ID3DXEffect::GetVector