|buffer||The buffer to freeze.|
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.
The above code will freeze the given vertex buffer.