attribute-index ( program-instance attribute-name -- index ) (original) (raw)

attribute-index ( program-instance attribute-name -- index )

Vocabulary
gpu.shaders

Inputs

program-instance a program-instance
attribute-name a string

Outputs

index an integer

Word description
Returns the numeric index of the vertex attribute named attribute-name in program-instance.

Definition

USING: accessors kernel opengl.gl ;

IN: gpu.shaders

MEMO: attribute-index
( program-instance attribute-name -- index )
[ handle>> ] dip glGetAttribLocation ;