setViewport method

void setViewport(
  1. num x,
  2. num y,
  3. num width,
  4. num height,
  5. num minDepth,
  6. num maxDepth,
)

The setViewport() method of the GPURenderPassEncoder interface sets the viewport used during the rasterization stage to linearly map from normalized device coordinates to viewport coordinates.

Implementation

external void setViewport(
  num x,
  num y,
  num width,
  num height,
  num minDepth,
  num maxDepth,
);