define-vertex-struct ( class vertex-format -- ) (original) (raw)
define-vertex-struct ( class vertex-format -- )
Inputs
class | a word |
---|---|
vertex-format | a vertex-format |
Outputs
None
Word description
Defines a new struct C type from a vertex-format. The runtime equivalent of VERTEX-STRUCT:. This word must be called inside a compilation unit.
Definition
USING: classes.struct gpu.shaders.private sequences ;
: define-vertex-struct ( class vertex-format -- )
vertex-format-attributes
[ vertex-attribute>struct-slot ] map define-struct-class ;