Contents

setScissorRect(_:)

Sets a scissor rectangle to discard fragments outside a specific area.

Declaration

func setScissorRect(_ rect: MTLScissorRect)

Parameters

  • rect:

    Mtlscissorrect rectangle to specify. This rectangle needs to lie completely within the current render attachment.

Discussion

Metal performs a scissor test and discards all fragments outside of the scissor rect.

See Also

Configuring viewport and scissor behavior