UpdateTexture method

void UpdateTexture(
  1. TextureD texture,
  2. Uint8List pixels
)

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(),
  ),
);