NAME

cgSetSamplerState - initializes the state specified for a sampler parameter

SYNOPSIS

  #include <Cg/cg.h>

  void cgSetSamplerState(CGparameter param);

PARAMETERS

parameter

Specifies the parameter handle.

DESCRIPTION

cgSetSamplerState sets the sampler state for a sampler parameter that was specified via a sampler_state block in a CgFX file. The corresponding sampler should be bound via the graphics API before this call is made.

ERRORS

CG_INVALID_PARAMETER_HANDLE_ERROR is generated if param is not a valid parameter handle.