Home > @visualization-tools/core > IGlBuffer > setSubBufferData
For a given changeId multiple writes are allowed where the modificationId is greater than the previous value. Every time changeId changes this is reset.
Signature:
setSubBufferData(context: TGlContext, byteOffset: number, data: TArray, changeId: number, modificationId: number): void;
| Parameter | Type | Description |
|---|---|---|
| context | TGlContext | |
| byteOffset | number | |
| data | TArray | |
| changeId | number | |
| modificationId | number |
Returns:
void
Allows multiple components to share buffers without knowing about it, avoiding unnecessary writes which could be blocking.