Handbook
Glossary
define-vertex-format ( class vertex-attributes -- )
Vocabulary
gpu
.
shaders
Inputs
class
a
class
vertex-attributes
a
sequence
Outputs
None
Word description
Defines a new
vertex-format
with the binary format specified by the
vertex-attribute
tuple values in
vertex-attributes
. The runtime equivalent of
VERTEX-FORMAT:
. This word must be called inside a compilation unit.
Definition
USING:
classes.mixin
classes.singleton
gpu.shaders.private
kernel
words
;
IN:
gpu.shaders
:
define-vertex-format
( class vertex-attributes -- )
[
[
[
define-singleton-class
]
[
vertex-format
add-mixin-instance
]
[
]
tri
]
[
define-vertex-format-methods
]
bi*
]
[
"vertex-format-attributes"
set-word-prop
]
2bi
;