cgGetParameterBufferOffset(3)

NAME
cgGetParameterBufferOffset - get a parameter's buffer offset

SYNOPSIS
  #include <Cg/cg.h>
  int cgGetParameterBufferOffset( CGparameter param );

PARAMETERS
The parameter for which the buffer offset will be retrieved.

RETURN VALUES
Returns the buffer offset for param.

Returns -1 if param does not belong to a buffer or an error occurs.

DESCRIPTION
cgGetParameterBufferOffset returns the buffer offset associated with a parameter. If param does not belong to a buffer, then -1 is returned.

EXAMPLES
int offset = cgGetParameterBufferOffset( myParam );

ERRORS
CG_INVALID_PARAM_HANDLE_ERROR is generated if param is not a valid parameter.

HISTORY
cgGetParameterBufferOffset was introduced in Cg 2.0.

SEE ALSO
cgGetParameterBufferIndex, cgGetParameterResourceSize