tida ~master (2021-10-06T18:27:09Z)
Home
Dub
Repo
Shader.attach
tida
shader
Shader
Binds a shader to the program.
class
Shader
(int type)
@
trusted
static if
(
isShaderProgram!type
)
Shader
!
type
attach
(
T
)
(
T
shader
)
if
(
isShaderUnite
!(
T.Type
) &&
(
shader.Type
==
Vertex
||
shader.Type
==
Fragment
)
)
if
(
isValidTypeShader
!
type
)
Parameters
shader
T
Fragment/Vertex shader.
Meta
Source
See Implementation
tida
shader
Shader
constructors
this
destructors
~this
functions
attach
bindAttribLocation
bindSource
destroy
disableVertex
enableVertex
fromFile
getAttribLocation
getUniformLocation
lengthUniforms
link
setUniform
setUniformMat
using
manifest constants
Type
properties
id
Binds a shader to the program.