Handbook
Glossary
buffer-kind? ( object -- ? )
Vocabulary
gpu
.
buffers
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
buffer-kind
class.
Definition
USING:
kernel
;
IN:
gpu.buffers
:
buffer-kind?
( object -- ? )
dup
transform-feedback-buffer?
[
drop
t
]
[
dup
pixel-pack-buffer?
[
drop
t
]
[
dup
pixel-unpack-buffer?
[
drop
t
]
[
dup
index-buffer?
[
drop
t
]
[
vertex-buffer?
]
if
]
if
]
if
]
if
;