setViewport

fun setViewport(    x: GPUIntegerCoordinate,     y: GPUIntegerCoordinate,     width: GPUIntegerCoordinate,     height: GPUIntegerCoordinate,     minDepth: Float,     maxDepth: Float)(source)

MDN Reference