Microsoft DirectX 8.0 (C++) |
Before using a technique, it is good to verify that the device can support it. To validate a technique, use the ID3DXTechnique::Validate method as show in the code sample below.
LPD3DXTECHNIQUE pTechnique; pEffect->GetTechnique(0, &pTechnique); if ( pTechnique->Validate() != D3D_OK) //Technique is not valid on current device.
Note It is strongly recommended that you validate a technique before using it. Using invalid techniques has unknown effects.