NAME

cgGetFirstSamplerStateAssignment - get the first state assignment in a sampler_state block

SYNOPSIS

  #include <Cg/cg.h>

  CGstateassignment cgGetFirstSamplerStateAssignment( CGparameter param  );

PARAMETERS

param

Specifies the sampler parameter to retrieve the first state assignment from.

DESCRIPTION

cgGetFirstSamplerStateAssignment is used to begin iteration over all of the state assignments contained within a sampler_state block assigned to a parameter in an effect file. See the "cgGetNextStateAssignment" document for more information.

RETURN VALUES

cgGetFirstSamplerStateAssignment returns a the first CGstateassignment object assigned to param. If param has no sampler_state block, NULL is returned.

ERRORS

CG_INVALID_PARAM_HANDLE_ERROR is generated if param does not refer to a valid parameter.

SEE ALSO

the "cgGetNextStateAssignment" document, and the "cgIsStateAssignment" document