Handbook
Glossary
shader-instance
Vocabulary
gpu
.
shaders
Class description
A
shader-instance
is a
shader
that has been compiled for a graphics context using
<shader-instance>
.
Definition
USING:
gpu
ui.gadgets.worlds
;
IN:
gpu.shaders
TUPLE:
shader-instance
<
gpu-object
{
shader
shader
initial:
T{
shader
}
}
{
world
world
initial:
T{
world
}
}
;
Methods
USING:
accessors
destructors
gpu.shaders
gpu.shaders.private
kernel
opengl.gl
;
M:
shader-instance
dispose
[
dup
valid-handle?
[
glDeleteShader
]
[
drop
]
if
f
]
change-handle
[
world>>
]
[
shader>>
instances>>
]
[
]
tri
?delete-at
;