NAME
cgGetParameterResource - get a program parameter's resource
SYNOPSIS
#include <Cg/cg.h> CGresource cgGetParameterResource( CGparameter param );PARAMETERS
- param
Specifies the program parameter.
DESCRIPTION
cgGetParameterResource allows the application to retrieve the resource for a parameter in a Cg program. This resource is necessary for the application to be able to supply the program's inputs and use the program's outputs.
The resource enumerant is a profile-specific hardware resource.
RETURN VALUES
Returns the resource of param.
ERRORS
CG_INVALID_PARAM_HANDLE_ERROR is generated if the handle param is invalid.
CG_INVALID_PARAMETER_ERROR is generated if the parameter is not a leaf node.
SEE ALSO
the "cgGetParameterResourceIndex" document, the "cgGetParameterBaseResource" document, and the "cgGetResourceString" document