note about setting buffer data

pull/8/head
cosmonaut 2020-12-19 23:35:30 -08:00
parent 7d2018e712
commit db50e07be6
1 changed files with 10 additions and 0 deletions

View File

@ -928,6 +928,11 @@ REFRESHAPI void REFRESH_SetTextureDataYUV(
);
/* Sets a region of the vertex buffer with client data.
*
* NOTE:
* Calling this function on a buffer after the buffer
* has been bound by BindVertexBuffers but before
* Present has been called is an error.
*
* buffer: The vertex buffer to be updated.
* offsetInBytes: The starting offset of the buffer to write into.
@ -945,6 +950,11 @@ REFRESHAPI void REFRESH_SetVertexBufferData(
);
/* Sets a region of the index buffer with client data.
*
* NOTE:
* Calling this function on a buffer after the buffer
* has been bound by BindIndexBuffer but before
* Present has been called is an error.
*
* buffer: The index buffer to be updated.
* offsetInBytes: The starting offset of the buffer to write into.