![]() | DataBufferSubDataT Method (IntPtr, T, IntPtr) |
Namespace: Ooogles
Exception | Condition |
---|---|
GLException | InvalidValue if offset or size is negative, or if together they define a region of memory that extends beyond the buffer object's allocated data store. |
GLException | InvalidOperation if no buffer is bound. |
Note: when replacing the entire data store, consider using SubData rather than completely recreating the data store with DataT(T, IntPtr, DataBufferUsage). This avoids the cost of reallocating the data store.
Note: consider using multiple buffer objects to avoid stalling the rendering pipeline during data store updates. If any rendering in the pipeline makes reference to data in the buffer object being updated by SubData, especially from the specific region being updated, that rendering must drain from the pipeline before the data store can be updated.
Note: clients must align data elements consistent with the requirements of the client platform, with an additional base-level requirement that an offset within a buffer to a datum comprising N be a multiple of N.
Note: in DEBUG mode with assertions enabled, an error will be logged to the debug console if this buffer is not bound.
OpenGL API: glBufferSubData