Name
cgGetParameterSemantic - get a parameter's semantic
Synopsis
#include <Cg/cg.h>
const char * cgGetParameterSemantic( CGparameter param );
Parameters
- param
-
The parameter.
Return Values
Returns the null-terminated semantic string for the parameter.
Returns NULL if an error occurs.
Description
cgGetParameterSemantic allows the application to retrieve
the semantic of a parameter in a Cg program. If a uniform parameter
does not have a user-assigned semantic, an empty string
will be returned. If a varying parameter does not have a user-assigned
semantic, the semantic string corresponding to the compiler-assigned resource
for that varying will be returned.
Examples
to-be-written
Errors
CG_INVALID_PARAM_HANDLE_ERROR is generated if param is not a valid parameter.
History
cgGetParameterSemantic was introduced in Cg 1.1.
See Also
cgSetParameterSemantic,
cgGetSemanticCasePolicy,
cgSetSemanticCasePolicy,
cgGetParameterResource,
cgGetParameterResourceIndex,
cgGetParameterName,
cgGetParameterType
|