Handbook
Glossary
uniform-index ( program-instance uniform-name -- index )
Vocabulary
gpu
.
shaders
Inputs
program-instance
a
program-instance
uniform-name
a
string
Outputs
index
an
integer
Word description
Returns the numeric index of the uniform parameter named
output-name
in
program-instance
.
Definition
USING:
accessors
kernel
opengl.gl
;
IN:
gpu.shaders
MEMO:
uniform-index
( program-instance uniform-name -- index )
[
handle>>
]
dip
glGetUniformLocation
;