> ## Name

> cgD3D10GetProgramErrors - Gets a list of errors returned from Direct3D if the program did not load.

> ## Synopsis

>     #include <Cg/cgD3D10.h>

>     ID3D10Blob * cgD3D10GetProgramErrors( CGprogram program );

> ## Parameters

> program
>   The program handle after a call to cgD3D10LoadProgram has been made.

> ## Return Values

> Returns a pointer to a ID3D10Blob object containing a list of errors if the program did not load.

> Returns NULL if the program was loaded.

> ## Description

> cgD3D10GetProgramErrors allows the user to get back the compiled shader from Direct3D once cgD3D10LoadProgram has been called.

> ## Examples

> CGprogram myCgProgram = cgCreateProgram( ... ); cgD3D10LoadProgram( myCgProgram, 0 );

> ID3D10Blob * err = cgD3D10GetProgramErrors( myCgProgram );

> ## Errors

> CG_INVALID_PROGRAM_HANDLE_ERROR is generated if the program is invalid;

> ## History

> cgD3D10GetProgramErrors was introduced in Cg 2.1.

> ## See Also

> cgD3D10LoadProgram