<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 27.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalFX",
  "identifier" : "/documentation/MetalFX/MTLFXTemporalDenoisedScalerBase/specularHitDistanceTexture",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MetalFX"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLFXTemporalDenoisedScalerBase(py)specularHitDistanceTexture"
  },
  "title" : "specularHitDistanceTexture"
}
-->

# specularHitDistanceTexture

The specular hit texture this scaler evaluates.

```
var specularHitDistanceTexture: (any MTLTexture)? { get set }
```

## Discussion

You are responsible for ensuring the usage and pixel format of the texture you assign to this property matches the
texture usage [`specularHitDistanceTextureUsage`](/documentation/MetalFX/MTLFXTemporalDenoisedScalerBase/specularHitDistanceTextureUsage) requests and the pixel format that
[`specularHitDistanceTextureFormat`](/documentation/MetalFX/MTLFXTemporalDenoisedScalerDescriptor/specularHitDistanceTextureFormat) requests.

---

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)