Finish building the primitive.


GML Code Example


Argument Description
buffer The buffer to end writing to.

Returns: N/A


With this function you end the building of the custom primitive. Once you call this command the primitive can be used in the vertex_submit function for use in a shader or you can freeze the buffer (making the vertex buffer used read-only and much faster) using vertex_freeze.


GML Code Example


The above code will end the defining of a custom primitive.

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here