Handbook
Glossary
compressed-texture-format? ( object -- ? )
Vocabulary
gpu
.
textures
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
compressed-texture-format
class.
Definition
USING:
kernel
;
IN:
gpu.textures
:
compressed-texture-format?
( object -- ? )
dup
RGTC2-SIGNED?
[
drop
t
]
[
dup
RGTC2?
[
drop
t
]
[
dup
RGTC1-SIGNED?
[
drop
t
]
[
dup
RGTC1?
[
drop
t
]
[
dup
LATC2-SIGNED?
[
drop
t
]
[
dup
LATC2?
~quotation~ ~quotation~
if
]
if
]
if
]
if
]
if
]
if
;