vertex_freeze

Freeze the given vertex buffer.

Syntax:

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:

vertex_freeze(buff);

The above code will freeze the given vertex buffer.


Back: Building Primitives
Next: vertex_submit
© Copyright YoYo Games Ltd. 2018 All Rights Reserved