Shader.attach

Binds a shader to the program.

class Shader(int type)
@trusted
static if(isShaderProgram!type)
Shader!type
attach
(
T
)
()
if (
isShaderUnite!(T.Type) &&
(
shader.Type == Vertex ||
shader.Type == Fragment
)
)

Parameters

shader T

Fragment/Vertex shader.

Meta