MDN self-hosted library · e01.org

GPURenderPassEncoder: setScissorRect() method

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
passEncoder.setScissorRect(0, 0, canvas.width / 2, canvas.height / 2);