UpdateTexture method
Update GPU texture with new data
Implementation
void UpdateTexture(
TextureD texture,
Uint8List pixels,
) => run(
() => _debugLabels.UpdateTexture(texture, pixels),
() => _flat.UpdateTexture(
texture,
$.Uint8$.Array(pixels).cast(),
),
);