Enumeration

MTLCullMode

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

Declaration

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

Topics

Constants

MTLCullModeNone

Does not cull any primitives.

MTLCullModeFront

Culls front-facing primitives.

MTLCullModeBack

Culls back-facing primitives.

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.

MTLWinding

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

- setCullMode:

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

Required.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software