vertex_freeze

Freeze the given vertex buffer.

Syntax:

GML Code Example

vertex_freeze(buffer);


Argument Description
buffer The buffer to freeze.


Returns: N/A


Description

This function can be used to "freeze" a vertex buffer. this buffer becomes read-only, meaning that should you need to change it, you would have to delete the whole buffer and re-create it. A frozen buffer can be submitted to the shader faster than a normal, dynamic buffer and is recommended for those effects that require an unchanging custom primitive for the duration of a level or the game.


Example:

GML Code Example

vertex_freeze(buff);

The above code will freeze the given vertex buffer.





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