Handbook
Glossary
cl-image-channel-type? ( object -- ? )
Vocabulary
opencl
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
cl-image-channel-type
class.
Definition
USING:
kernel
;
IN:
opencl
:
cl-image-channel-type?
( object -- ? )
dup
cl-channel-type-float?
[
drop
t
]
[
dup
cl-channel-type-half-float?
[
drop
t
]
[
dup
cl-channel-type-unsigned-int32?
[
drop
t
]
[
dup
cl-channel-type-unsigned-int16?
[
drop
t
]
[
dup
cl-channel-type-unsigned-int8?
[
drop
t
]
[
dup
cl-channel-type-signed-int32?
~quotation~ ~quotation~
if
]
if
]
if
]
if
]
if
]
if
;