<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLSamplerDescriptor/lodAverage",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLSamplerDescriptor(py)lodAverage"
  },
  "title" : "lodAverage"
}
-->

# lodAverage

A Boolean value that specifies whether the GPU can use an average level of detail (LOD) when sampling from a texture.

```
var lodAverage: Bool { get set }
```

## Discussion

If this value is <doc://com.apple.documentation/documentation/Swift/true>, an average LOD may be used across four fragment shader threads. If this value is <doc://com.apple.documentation/documentation/Swift/false>, no averaging is performed and each thread accesses its own LOD.

The default value is <doc://com.apple.documentation/documentation/Swift/false>.

> Note:
> This optional Boolean value is used as a performance optimization hint and it is ignored on some GPUs. Enabling LOD averaging may provide a performance benefit for shaders that sample from explicit per-fragment mipmap levels, or apply per-fragment LOD bias, at the potential cost of reduced texture sample quality.

---

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)