NAME
cgD3D9EnableParameterShadowing - enable or disable parameter shadowing for a program
SYNOPSIS
#include <Cg/cgD3D9.h> HRESULT cgD3D9EnableParameterShadowing( CGprogram program, CGbool enable );PARAMETERS
- program
The program in which to set the parameter shadowing state.
- enable
CG_TRUE to enable parameter shadowing for program, CG_FALSEto disable it.
RETURN VALUES
cgD3D9EnableParameterShadowing returns to-be-written
If the function succeeds the return value is D3D_OK.
If the function fails due to a D3D call, that D3D failure code is returned.
DESCRIPTION
cgD3D9EnableParameterShadowing does to-be-written
EXAMPLES
The following example code illustrates the use of cgD3D9EnableParameterShadowing:
// prog is a CGprogram initialized elsewhere ... HRESULT hres = cgD3D9EnableParameterShadowing(prog, CG_FALSE);ERRORS
If cgD3D9EnableParameterShadowing fails due to a D3D call, that D3D failure code is returned.
The function could also return one of these Cg-specific errors:
CGD3D9ERR_NOTLOADED to-be-written
HISTORY
cgD3D9EnableParameterShadowing was introduced in Cg to-be-written.
SEE ALSO