Enumeration

MTLWinding

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

Declaration

typedef enum MTLWinding : NSUInteger {
    ...
} MTLWinding;

Topics

Constants

MTLWindingClockwise

Primitives whose vertices are specified in clockwise order are front-facing.

MTLWindingCounterClockwise

Primitives whose vertices are specified in counter-clockwise order are front-facing.

See Also

Setting Graphics Rendering Behavior

- setRenderPipelineState:

Sets the current render pipeline state object.

Required.

- setTriangleFillMode:

Sets how to rasterize triangle and triangle strip primitives.

Required.

MTLTriangleFillMode

Specifies how to rasterize triangle and triangle strip primitives.

- setFrontFacingWinding:

Sets the winding order of front-facing primitives.

Required.

- setCullMode:

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

Required.

MTLCullMode

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