vertex_freeze


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.


Syntax:

vertex_freeze(buffer);

Argument Description
buffer The buffer to freeze.


Returns:

N/A


Example:

vertex_freeze(buff);

The above code will freeze the given vertex buffer.