Handbook
Glossary
ptx-type? ( object -- ? )
Vocabulary
cuda
.
ptx
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
ptx-type
class.
Definition
USING:
classes.tuple.private
kernel
slots.private
;
IN:
cuda.ptx
:
ptx-type?
( object -- ? )
dup
dup
tuple?
[
layout-of
7
slot
dup
\
.struct
eq?
[
drop
t
]
[
dup
\
.v4
eq?
[
drop
t
]
[
\
.v2
eq?
]
if
]
if
]
[
drop
f
]
if
[
drop
t
]
[
dup
.surfref?
[
drop
t
]
[
dup
.samplerref?
[
drop
t
]
[
dup
.texref?
[
drop
t
]
[
dup
.pred?
[
drop
t
]
[
dup
.b64?
~quotation~ ~quotation~
if
]
if
]
if
]
if
]
if
]
if
;