Cg Core Runtime API cgGetParameterResource(3)
NAME
cgGetParameterResource - get a program parameter's resource
SYNOPSIS
#include
CGresource cgGetParameterResource( CGparameter param );
PARAMETERS
param The program parameter.
RETURN VALUES
Returns the resource of param.
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.
EXAMPLES
/* log info about parameter param for debugging */
printf("Resource: %s:%d (base %s)\n",
cgGetResourceString(cgGetParameterResource(param)),
cgGetParameterResourceIndex(param),
cgGetResourceString(cgGetParameterBaseResource(param)));
ERORS
CGINVALIDPARAMHANDLEROR is generated if param is not a
valid parameter.
CGINVALIDPARAMETEREROR is generated if param is not a
leaf node.
HISTORY
cgGetParameterResource was introduced in Cg 1.1.
SEE ALSO
cgGetParameterResourceIndex, cgGetParameterBaseResource,
cgGetResourceString
Cg Toolkit 2.1 Last change: 1
|