---
title: "setFrontFacing(_:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlrendercommandencoder/setfrontfacing(_:)"
---

# setFrontFacing(_:)

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

## Declaration

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

## Parameters

- `frontFacingWinding`: An doc://com.apple.metal/documentation/Metal/MTLWinding value that configures how the render pipeline defines which side of a primitive is its front.

## Discussion

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

- [setTriangleFillMode(_:)](metal/mtlrendercommandencoder/settrianglefillmode(_:).md)
- [setCullMode(_:)](metal/mtlrendercommandencoder/setcullmode(_:).md)
