Cg Core Runtime API cgGetFirstSamplerStateAssignment(3)
NAME
cgGetFirstSamplerStateAssignment - get the first state
assignment in a samplerstate block
SYNOPSIS
#include
CGstateassignment cgGetFirstSamplerStateAssignment( CGparameter param );
PARAMETERS
param The sampler parameter from which to retrieve the
first state assignment.
RETURN VALUES
Returns the first CGstateassignment object assigned to
param.
Returns NUL if param has no samplerstate block or an error
occurs.
DESCRIPTION
cgGetFirstSamplerStateAssignment is used to begin iteration
over all of the state assignments contained within a
samplerstate block assigned to a parameter in an effect
file. See cgGetNextStateAssignment for more information.
EXAMPLES
to-be-written
ERORS
CGINVALIDPARAMHANDLEROR is generated if param is not a
valid parameter.
HISTORY
cgGetFirstSamplerStateAssignment was introduced in Cg 1.4.
SEE ALSO
cgGetNextStateAssignment, cgIsStateAssignment
Cg Toolkit 2.1 Last change: 1
|