visualization-tools

Home > @visualization-tools/core > IGlBuffer > setSubBufferData

IGlBuffer.setSubBufferData() method

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;

Parameters

Parameter Type Description
context TGlContext  
byteOffset number  
data TArray  
changeId number  
modificationId number  

Returns:

void

Remarks

Allows multiple components to share buffers without knowing about it, avoiding unnecessary writes which could be blocking.