NAME
cgValidateTechnique - validate a technique from an effect
SYNOPSIS
#include <Cg/cg.h> CGbool cgValidateTechnique( CGtechnique tech );PARAMETERS
- tech
The technique handle to validate.
RETURN VALUES
to-be-written
DESCRIPTION
cgValidateTechnique returns CG_TRUE if all of the state assignments in all of the passes in tech are valid and can be used on the current hardware and CG_FALSE otherwise.
cgValidateTechnique iterates over all state assignments in all passes and calls cgCallStateValidateCallback to test to see if the state assignment passes validation. If any state assignment fails validation, CG_FALSE is returned.
EXAMPLES
to-be-written
ERRORS
CG_INVALID_TECHNIQUE_HANDLE_ERROR is generated if tech does not refer to a valid technique.
HISTORY
cgValidateTechnique was introduced in Cg 1.4.
SEE ALSO