Name

cgIsTechniqueValidated - indicates whether the technique has passed validation

Synopsis

#include <Cg/cg.h>

CGbool cgIsTechniqueValidated( CGtechnique tech );

Parameters

tech
The technique handle.

Return Values

Returns CG_TRUE if the technique has previously passes validation via a call to cgValidateTechnique.

Returns CG_FALSE if validation hasn't been attempted or the technique has failed a validation attempt.

Description

cgIsTechniqueValidated returns CG_TRUE if the technique has previously passes validation via a call to cgValidateTechnique. CG_FALSE is returned both if validation hasn't been attempted as well as if the technique has failed a validation attempt.

Examples

to-be-written

Errors

CG_INVALID_TECHNIQUE_HANDLE_ERROR is generated if tech is not a valid technique.

History

cgIsTechniqueValidated was introduced in Cg 1.4.

See Also

cgValidateTechnique, cgCallStateValidateCallback