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

# setFrontFacing(_:)

Configures the vertex winding order that determines which face of a geometric primitive is the front one.

## Declaration

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

## Parameters

- `frontFacingWinding`: A doc://com.apple.metal/documentation/Metal/MTLWinding value that determines which side of a primitive the render pipeline interprets as front facing.

## See Also

### Configuring rendering behavior

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