VertexBuffer::EndUpdate
Defined in:
Unmaps a vertex buffer.
C4Renderable.h
Prototype
void EndUpdate(void);
void EndUpdateSync(void);
Description
The EndUpdate
function unmaps the storage for a vertex buffer that was previously mapped using the VertexBuffer::BeginUpdate
function. Once a vertex buffer is unmapped, it is no longer legal to write to the buffer returned by the BeginUpdate
function.The
EndUpdateSync
variant of the EndUpdate
function should normally be called to ensure that the GPU driver is being accessed properly in multithreaded contexts. The EndUpdate
function should only be called if it's a certainty that it is being called from the main thread. Both functions have the same effect.
See Also