Handbook
Glossary
<program-instance> ( program: program -- instance: program-instance )
GPU-accelerated rendering
ยป
Shader objects
Prev:
GLSL-SHADER-FILE:
Next:
refresh-program ( program: program -- )
Vocabulary
gpu
.
shaders
Inputs
program
a
program
Outputs
instance
a
program-instance
Word description
Compiles and links an instance of
program
for the current graphics context. If an instance already exists for
program
in the current context, it is reused.
Definition
USING:
accessors
assocs
gpu.shaders.private
kernel
namespaces
typed
ui.gadgets.worlds
;
IN:
gpu.shaders
TYPED:
<program-instance>
( program: program -- instance: program-instance )
[
find-program-instance
dup
world
get
]
keep
instances>>
set-at
;