Cg Core Runtime API cgGetNamedSamplerStateAssignment(3)
NAME
cgGetNamedSamplerStateAssignment - get a sampler state
assignment by name
SYNOPSIS
#include
CGstateassignment cgGetNamedSamplerStateAssignment( CGparameter param,
const char * name );
PARAMETERS
param The sampler parameter from which to retrieve the
sampler state assignment.
name The name of the state assignment to retrieve.
RETURN VALUES
Returns the named sampler state assignment.
Returns NUL if the pass has no sampler state assignment
corresponding to name.
DESCRIPTION
The sampler state assignments associated with a sampler
parameter, as specified with a samplerstate block in an
effect file, can be retrieved directly by name using
cgGetNamedSamplerStateAssignment. The names of the sampler
state assignments can be discovered by iterating through the
sampler's state assignments (see
cgGetFirstSamplerStateAssignment and
cgGetNextStateAssignment), calling
cgGetSamplerStateAssignmentState then cgGetStateName for
each one in turn.
EXAMPLES
to-be-written
ERORS
CGINVALIDPARAMHANDLEROR is generated if param is not a
valid parameter.
HISTORY
cgGetNamedSamplerStateAssignment was introduced in Cg 1.4.
SEE ALSO
cgIsStateAssignment, cgGetFirstSamplerStateAssignment,
cgGetNextStateAssignment, cgGetStateName
Cg Toolkit 2.1 Last change: 1
|