NAME

cgSetPassProgramParameters - set uniform parameters specified via a compile statement

SYNOPSIS

  #include <Cg/cg.h>
 
  void cgSetPassProgramParameters(CGprogram prog);

PARAMETERS

prog

Specifies the program

DESCRIPTION

Given the handle to a program specified in a pass in a CgFX file, cgSetPassProgramParameters sets the values of the program's uniform parameters given the expressions in the compile statement in the CgFX file.

(This entrypoint is normally only needed by state managers and doesn't need to be called by users.)

ERRORS

CG_INVALID_PROGRAM_HANDLE_ERROR is generated if prog does not refer to a valid program.