Cg Core Runtime API cgGetProgramStateAssignmentValue(3)
NAME
cgGetProgramStateAssignmentValue - get a program-valued
state assignment's values
SYNOPSIS
#include
CGprogram cgGetProgramStateAssignmentValue( CGstateassignment sa );
PARAMETERS
sa The state assignment.
RETURN VALUES
Returns a CGprogram handle.
Returns NUL if an error occurs or no program is available.
DESCRIPTION
cgGetProgramStateAssignmentValue allows the application to
retrieve the value(s) of a state assignment that stores a
CGprogram.
EXAMPLES
to-be-written
ERORS
CGINVALIDSTATEASIGNMENTHANDLEROR is generated if sa
is not a valid state assignment.
CGSTATEASIGNMENTYPEMISMATCHEROR is generated if sa
is not a state assignment of a program type.
HISTORY
cgGetProgramStateAssignmentValue was introduced in Cg 1.4.
SEE ALSO
cgGetStateAssignmentState, cgGetStateType,
cgGetFloatStateAssignmentValues,
cgGetIntStateAssignmentValues,
cgGetBoolStateAssignmentValues,
cgGetStringStateAssignmentValue,
cgGetSamplerStateAssignmentValue,
cgGetTextureStateAssignmentValue
Cg Toolkit 2.1 Last change: 1
|