Handbook
Glossary
specialized-vector? ( object -- ? )
Vocabulary
specialized-vectors
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
specialized-vector
class.
Definition
USING:
classes.tuple.private
kernel
slots.private
specialized-vectors.instances.alien.c-types.uint
specialized-vectors.instances.alien.c-types.ushort
specialized-vectors.instances.game.loop.benchmark.game-loop-benchmark
specialized-vectors.instances.gpu.demos.bunny.bunny-vertex-struct
specialized-vectors.instances.math.vectors.simd.float-4
;
IN:
specialized-vectors
:
specialized-vector?
( object -- ? )
dup
tuple?
[
layout-of
7
slot
dup
\
bunny-vertex-struct-vector
eq?
[
drop
t
]
[
dup
\
uint-vector
eq?
[
drop
t
]
[
dup
\
float-4-vector
eq?
[
drop
t
]
[
dup
\
ushort-vector
eq?
[
drop
t
]
[
dup
\
game-loop-benchmark-vector
eq?
~quotation~ ~curried~
if
]
if
]
if
]
if
]
if
]
[
drop
f
]
if
;