Luna::RHI::ICommandBuffer::set_scissor_rect

virtual void set_scissor_rect(const RectI &rect)=0

Binds one scissor rectangle 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.

This operation behaves the same as calling set_scissor_rects with only one scissor rect.

Parameters

  • in rect

    The scissor rectangle to set.