Contents

setScissorRect(_:)

Configures a rectangle for the fragment scissor test.

Declaration

func setScissorRect(_ rect: MTLScissorRect)

Parameters

  • rect:

    An Mtlscissorrect instance that represents a rectangle that needs to lie completely within the current render attachment.

Discussion

The rendering pipeline discards any fragments that lie outside the scissor rectangle.

The default scissor rectangle is the same size as the current render attachment, with its origin coordinates in the upper-left corner at (0, 0).

See Also

Configuring viewport and scissor behavior