configure method

void configure(
  1. GPUCanvasConfiguration configuration
)

Attaches a device and settles what the canvas texture will be.

Called again on every resize: a configured canvas keeps its size from the element, and reconfiguring is how a backend says the drawing buffer should follow.

Implementation

external void configure(GPUCanvasConfiguration configuration);