Function updateTextureRegion
-
updateTextureRegion(
engine: EngineContext,
texture: Texture2D,
data: ArrayBufferView,
region: TextureRegion,
): voidParameters
- engine: EngineContext
- texture: Texture2D
- data: ArrayBufferView
- region: TextureRegion
Returns void
Upload CPU bytes into a box of any texture Lite created with copy-destination usage, in the texture's own format (rgba16float tiles, r32uint tables, ...), into any mip level and array layers. The data is read through
data.bufferatdata.byteOffset + dataOffset, so no view is created; the region object is the caller's and is reused. Ordered on the queue before the next submitted frame.