Instance Method

setTriangleFillMode(_:)

Sets how to rasterize triangle and triangle strip primitives.

Required.

Declaration

func setTriangleFillMode(_ fillMode: MTLTriangleFillMode)

Parameters

fillMode

The mode that determines how to rasterize triangle and triangle strip primitives.

Discussion

The default value is MTLTriangleFillMode.fill.

See Also

Setting Graphics Rendering Behavior

func setRenderPipelineState(MTLRenderPipelineState)

Sets the current render pipeline state object.

Required.

enum MTLTriangleFillMode

Specifies how to rasterize triangle and triangle strip primitives.

func setFrontFacing(MTLWinding)

Sets the winding order of front-facing primitives.

Required.

enum MTLWinding

The vertex winding rule that determines a front-facing primitive.

func setCullMode(MTLCullMode)

Specifies whether to cull primitives when front- or back-facing.

Required.

enum MTLCullMode

The mode that determines whether to perform culling and which type of primitive to cull.