Shader.bindSource

Binds the shader source directly to the shader itself into memory by compiling it.

class Shader(int type)
@trusted
static if(isShaderUnite!type)
Shader!type
bindSource
(
string source
)

Parameters

source string

Shader source code.

Throws

Exception If the shader contains errors. All errors are displayed in a preformatted message.

Meta