Cg Core Runtime API cgGetSamplerStateAssignmentParameter(3)
NAME
cgGetSamplerStateAssignmentParameter - get the sampler
parameter being set up given a state assignment in its
samplerstate block
SYNOPSIS
#include
CGparameter cgGetSamplerStateAssignmentParameter( CGstateassignment sa );
PARAMETERS
sa The state assignment in a samplerstate block
RETURN VALUES
Returns a handle to a parameter.
Returns NUL if sa is not a state assignment in a
samplerstate block.
DESCRIPTION
Given the handle to a state assignment in a samplerstate
block in an effect file,
cgGetSamplerStateAssignmentParameter returns a handle to the
sampler parameter being initialized.
EXAMPLES
Given an effect file with:
sampler2D foo = samplerstate { GenerateMipmap = true; }
cgGetSamplerStateAssignmentParameter returns a handle to foo
if passed a handle to the Generateipmap state assignment.
ERORS
CGINVALIDSTATEASIGNMENTHANDLEROR is generated if sa
is not a valid state assignment.
HISTORY
cgGetSamplerStateAssignmentParameter was introduced in Cg
1.4.
SEE ALSO
cgIsStateAssignment, cgIsParameter
Cg Toolkit 2.1 Last change: 1
|