cgD3D11IsProgramLoaded
Keywords: cgD3D11IsProgramLoaded, NVIDIA, NVIDIA Cg Toolkit, Cg Toolkit, Shader, Shader Programming, GPU Shader Programming, GPU Program

> ## Name

> cgD3D11IsProgramLoaded - determine if a program has been loaded

> ## Synopsis

>     #include <Cg/cgD3D11.h>

>     CGbool cgD3D11IsProgramLoaded( CGprogram program );

> ## Parameters

> program
>   The program which will be checked.

> ## Return Values

> Returns CG_TRUE if program has been loaded using cgD3D11LoadProgram.

> Returns CG_FALSE otherwise.

> ## Description

> cgD3D11IsProgramLoaded determines if a program has been loaded using cgD3D11LoadProgram.

> ## Examples

>     // program is a CGprogram initialized elsewhere
>     ...
>     CGbool isLoaded = cgD3D11IsProgramLoaded(program);

> ## Errors

> None.

> ## History

> cgD3D11IsProgramLoaded was introduced in Cg 3.0.

> ## See Also

> cgD3D11LoadProgram