Handbook
Glossary
vertex-indexes? ( object -- ? )
Vocabulary
gpu
.
render
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
vertex-indexes
class.
Definition
USING:
classes.tuple.private
kernel
slots.private
specialized-arrays.instances.alien.c-types.uchar
specialized-arrays.instances.alien.c-types.uint
specialized-arrays.instances.alien.c-types.ushort
;
IN:
gpu.render
:
vertex-indexes?
( object -- ? )
dup
tuple?
[
layout-of
7
slot
dup
\
uint-array
eq?
[
drop
t
]
[
dup
\
ushort-array
eq?
[
drop
t
]
[
dup
\
uchar-array
eq?
[
drop
t
]
[
dup
\
multi-index-elements
eq?
[
drop
t
]
[
dup
\
index-elements
eq?
~quotation~ ~quotation~
if
]
if
]
if
]
if
]
if
]
[
drop
f
]
if
;