Handbook
Glossary
shader-kind? ( object -- ? )
Vocabulary
gpu
.
shaders
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
shader-kind
class.
Definition
USING:
kernel
;
IN:
gpu.shaders
:
shader-kind?
( object -- ? )
dup
geometry-shader?
[
drop
t
]
[
dup
fragment-shader?
[
drop
t
]
[
vertex-shader?
]
if
]
if
;