Handbook
Glossary
gpu-state? ( object -- ? )
Vocabulary
gpu
.
state
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
gpu-state
class.
Definition
USING:
classes.tuple.private
kernel
slots.private
;
IN:
gpu.state
:
gpu-state?
( object -- ? )
dup
tuple?
[
layout-of
7
slot
dup
\
mask-state
eq?
[
drop
t
]
[
dup
\
blend-state
eq?
[
drop
t
]
[
dup
\
depth-state
eq?
[
drop
t
]
[
dup
\
depth-range-state
eq?
[
drop
t
]
[
dup
\
stencil-state
eq?
~quotation~ ~quotation~
if
]
if
]
if
]
if
]
if
]
[
drop
f
]
if
;