This function ends the building of a custom primitive that was started with vertex_begin.
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.
vertex_end(buffer);
Argument | Type | Description |
---|---|---|
buffer | Vertex Buffer | The vertex buffer to end writing to. |
N/A
vertex_end(buff);
The above code ends the definition of a custom primitive.