Developer Zone
NVIDIA.com Developer Home
Cg Toolkit Cg 3.0 Toolkit Documentation
Cg / Runtime / CgD3D8 / cgD3D8BindProgram

Name

cgD3D8BindProgram - activate a program with D3D

Synopsis

#include <Cg/cgD3D8.h>

HRESULT cgD3D8BindProgram( CGprogram prog );

Parameters

program
A CGprogram handle, the program to activate with D3D.

Return Values

cgD3D8BindProgram returns D3D_OK if the function succeeds.

If the function fails due to a D3D call, that D3D failure code is returned.

Description

cgD3D8BindProgram does to-be-written

Examples

  // example code to-be-written

Errors

None.

    or

to-be-written

History

cgD3D8BindProgram was introduced in Cg 1.1.

See Also

cgD3D9BindProgram


Cg Toolkit | Cg Toolkit | Download | Release Archive | Profiles | Reference | Books | Discussions |


Cg Runtime CgD3D8

cgD3D8BindProgram
cgD3D8EnableDebugTracing
cgD3D8EnableParameterShadowing
cgD3D8GetDevice
cgD3D8GetLastError
cgD3D8GetLatestPixelProfile
cgD3D8GetLatestVertexProfile
cgD3D8GetOptimalOptions
cgD3D8GetVertexDeclaration
cgD3D8IsParameterShadowingEnabled
cgD3D8IsProgramLoaded
cgD3D8LoadProgram
cgD3D8ResourceToInputRegister
cgD3D8SetDevice
cgD3D8SetTexture
cgD3D8SetTextureStageState
cgD3D8SetTextureWrapMode
cgD3D8SetUniformArray
cgD3D8SetUniformMatrixArray
cgD3D8SetUniformMatrix
cgD3D8SetUniform
cgD3D8TranslateCGerror
cgD3D8TranslateHRESULT
cgD3D8TypeToSize
cgD3D8UnloadProgram
cgD3D8ValidateVertexDeclaration