Shader.bindAttribLocation

Associates a generic vertex attribute index with a named attribute variable

class Shader(int type)
@trusted
static if(isShaderProgram!Type)
void
bindAttribLocation
(
uint index
,
string name
)

Parameters

index uint

Specifies the index of the generic vertex attribute to be bound.

name string

Specifies a null terminated string containing the name of the vertex shader attribute variable to which index is to be bound.

See Also

Meta