Handbook
Glossary
uniform-type? ( object -- ? )
Vocabulary
gpu
.
render
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
uniform-type
class.
Definition
USING:
kernel
;
IN:
gpu.render
:
uniform-type?
( object -- ? )
dup
texture-uniform?
[
drop
t
]
[
dup
mat4-uniform?
[
drop
t
]
[
dup
mat4x3-uniform?
[
drop
t
]
[
dup
mat4x2-uniform?
[
drop
t
]
[
dup
mat3x4-uniform?
[
drop
t
]
[
dup
mat3-uniform?
~quotation~
~quotation~
if
]
if
]
if
]
if
]
if
]
if
;