<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLRenderCommandEncoder/setFrontFacing(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLRenderCommandEncoder(im)setFrontFacingWinding:"
  },
  "title" : "setFrontFacing(_:)"
}
-->

# setFrontFacing(_:)

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

```
func setFrontFacing(_ frontFacingWinding: MTLWinding)
```

## Parameters

`frontFacingWinding`

An [`MTLWinding`](/documentation/Metal/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`](/documentation/Metal/MTLWinding/clockwise).

The winding direction of a primitive determines whether the render pass culls it (see [`setCullMode(_:)`](/documentation/Metal/MTLRenderCommandEncoder/setCullMode(_:))).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)