vertex_freeze(buffer);
参数 | 描述 |
---|---|
buffer | The buffer to freeze. |
返回: N/A(无返回值)
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.
vertex_freeze(buff);
The above code will freeze the given vertex buffer.