Handbook
Glossary
vertex-array? ( object -- ? )
Vocabulary
gpu
.
shaders
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
vertex-array
class.
Definition
USING:
classes.tuple.private
kernel
math.private
slots.private
;
IN:
gpu.shaders
:
vertex-array?
( object -- ? )
dup
tuple?
[
layout-of
dup
7
slot
\
vertex-array-collection
eq?
[
drop
t
]
[
dup
1
slot
11
fixnum>=
[
11
slot
\
vertex-array-object
eq?
]
[
drop
f
]
if
]
if
]
[
drop
f
]
if
;