setViewport method
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,
);