<!--
{
  "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/MTLTriangleFillMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLTriangleFillMode"
  },
  "title" : "MTLTriangleFillMode"
}
-->

# MTLTriangleFillMode

Specifies how to rasterize triangle and triangle strip primitives.

```
enum MTLTriangleFillMode
```

## Topics

### Fill modes

[`MTLTriangleFillMode.fill`](/documentation/Metal/MTLTriangleFillMode/fill)

Rasterize triangle and triangle strip primitives as filled triangles.

[`MTLTriangleFillMode.lines`](/documentation/Metal/MTLTriangleFillMode/lines)

Rasterize triangle and triangle strip primitives as lines.



---

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)