Contents

setFrontFacing(_:)

Configures which face of a primitive, such as a triangle, is the front.

Declaration

func setFrontFacing(_ frontFacingWinding: MTLWinding)

Parameters

  • frontFacingWinding:

    An Mtlwinding value that configures how the render pipeline defines which side of a primitive is its front.

Discussion

The render pass’s default front-facing mode is MTLWinding.clockwise.

The winding direction of a primitive determines whether the render pass culls it (see setCullMode(_:)).

See Also

Configuring rendering behavior