Handbook
Glossary
stencil-op? ( object -- ? )
Vocabulary
gpu
.
state
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
stencil-op
class.
Definition
USING:
kernel
;
IN:
gpu.state
:
stencil-op?
( object -- ? )
dup
op-dec-wrap?
[
drop
t
]
[
dup
op-inc-wrap?
[
drop
t
]
[
dup
op-dec-sat?
[
drop
t
]
[
dup
op-inc-sat?
[
drop
t
]
[
dup
op-invert?
[
drop
t
]
[
dup
op-replace?
~quotation~ ~quotation~
if
]
if
]
if
]
if
]
if
]
if
;