Handbook
Glossary
<shader-instance> ( shader: shader -- instance: shader-instance )
Vocabulary
gpu
.
shaders
Inputs
shader
a
shader
Outputs
instance
a
shader-instance
Word description
Compiles an instance of
shader
for the current graphics context. If an instance already exists for
shader
in the current context, it is reused.
Definition
USING:
accessors
assocs
gpu.shaders.private
kernel
namespaces
typed
ui.gadgets.worlds
;
IN:
gpu.shaders
TYPED:
<shader-instance>
( shader: shader -- instance: shader-instance )
[
find-shader-instance
dup
world
get
]
keep
instances>>
set-at
;