mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 00:24:40 +00:00
Added immutable vertex and index buffers.
This commit is contained in:
parent
d08c0df85d
commit
28d303c5ea
13 changed files with 98 additions and 32 deletions
|
|
@ -39,8 +39,8 @@
|
|||
|
||||
enum GFXBufferType
|
||||
{
|
||||
GFXBufferTypeStatic, ///< Static vertex buffers are created and filled one time.
|
||||
///< incur a performance penalty. Resizing a static vertex buffer is not
|
||||
GFXBufferTypeStatic, ///< Static vertex buffers are created and rarely updated.
|
||||
///< Updating might incur a performance penalty. Resizing a static vertex buffer is not
|
||||
///< allowed.
|
||||
GFXBufferTypeDynamic, ///< Dynamic vertex buffers are meant for vertices that can be changed
|
||||
///< often. Vertices written into dynamic vertex buffers will remain valid
|
||||
|
|
@ -48,7 +48,8 @@ enum GFXBufferType
|
|||
///< allowed.
|
||||
GFXBufferTypeVolatile, ///< Volatile vertex or index buffers are meant for vertices or indices that are essentially
|
||||
///< only used once. They can be resized without any performance penalty.
|
||||
|
||||
GFXBufferTypeImmutable, ///< Immutable buffers must specify the data when creating the buffer. Cannot be modified.
|
||||
|
||||
GFXBufferType_COUNT ///< Number of buffer types.
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue