Luna::RHI::ICommandBuffer::set_scissor_rects

virtual void set_scissor_rects(Span< const RectI > rects)=0

Binds an array of scissor rectangles to the rasterizer stage. The scissor rectangle points are relative to the top-left corner of the render target, with x-axis points to right and y-axis points to down.

All scissor rectangles must be set in one call. Any call to set_scissor_rect or set_scissor_rects clears all existing scissor rectangles before setting new scissor rectangles.

Parameters

  • in rects

    The scissor rectangles to set.