setScissorRect method

The setScissorRect() method of the GPURenderPassEncoder interface sets the scissor rectangle used during the rasterization stage. After transformation into viewport coordinates any fragments that fall outside the scissor rectangle will be discarded.

Implementation

external void setScissorRect(
  GPUIntegerCoordinate x,
  GPUIntegerCoordinate y,
  GPUIntegerCoordinate width,
  GPUIntegerCoordinate height,
);