Home -> IShaderProgram -> CompileProgram

Description

The CompileProgram method attempts to compile the code supplied by the LoadShaderStage method. Prior to calling this method, the shader program cannot be bound to an IProgramNode, and no information about the shader program can be queried.

Usage

SuccessToken CompileProgram();

Return value

[SuccessToken]
True if the operation succeeded, false otherwise. An assertion will be raised in debug builds if the result is not tested.

See also