Handbook
Glossary
texture-attachment? ( object -- ? )
Vocabulary
gpu
.
framebuffers
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
texture-attachment
class.
Definition
USING:
classes.tuple.private
kernel
slots.private
;
IN:
gpu.framebuffers
:
texture-attachment?
( object -- ? )
dup
tuple?
[
layout-of
7
slot
dup
\
texture-layer-attachment
eq?
[
drop
t
]
[
dup
\
texture-3d-attachment
eq?
[
drop
t
]
[
dup
\
texture-2d-attachment
eq?
[
drop
t
]
[
\
texture-1d-attachment
eq?
]
if
]
if
]
if
]
[
drop
f
]
if
;