Name
cgGetParameterResourceType - get a parameter's resource type
Synopsis
#include <Cg/cg.h> CGtype cgGetParameterResourceType( CGparameter param );Parameters
- param
- The parameter for which the resource type will be returned.
Return Values
Returns the resource type of param.
Returns CG_UNKNOWN_TYPE if the parameter does not belong to a program, if the program is not compiled, or if an error occurs.
Description
cgGetParameterResourceType allows the application to retrieve the resource type for a parameter in a Cg program.
Examples
to-be-written
Errors
CG_INVALID_PARAM_HANDLE_ERROR is generated if param is not a valid parameter.
History
cgGetParameterResourceType was introduced in Cg 2.0.
See Also
cgGetParameterResource, cgGetParameterResourceIndex, cgGetParameterResourceSize, cgGetResource, cgGetResourceString