NAME

cgValidateTechnique - validate a technique from an effect

SYNOPSIS

  #include <Cg/cg.h>

  CGbool cgValidateTechnique(CGtechnique technique);

PARAMETERS

technique

Specifies the technique handle to validate.

DESCRIPTION

cgValidateTechnique returns CG_TRUE if all of the state assignments in all of the passes in technique are valid and can be used on the current hardware and CG_FALSE otherwise.

This function iterates over all state assignments in all passes and calls the "cgCallStateValidateCallback" document to test to see if the state assignment passes validation. If any state assignment fails validation, CG_FALSE is returned.

ERRORS

CG_INVALID_TECHNIQUE_HANDLE_ERROR is generated if technique does not refer to a valid technique.

SEE ALSO

the "cgCallStateValidateCallback" document, the "cgSetStateCallbacks" document