Function RenderPass.setViewport

Sets the viewport region.

void setViewport (
  float x,
  float y,
  float w,
  float h,
  float minDepth,
  float maxDepth
);

Subsequent draw calls will draw any fragments in this region.