vertex_freeze

Freeze the given vertex buffer.

语法:

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.


上一页: Building Primitives
下一页: vertex_submit
© Copyright YoYo Games Ltd. 2018 All Rights Reserved