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