<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ImageBasedLightTextureGenerator/makeSpecularDescriptor(fromCube:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:28RealityCoreTextureProcessing015ImageBasedLightC9GeneratorC22makeSpecularDescriptor8fromCubeSo010MTLTextureK0CSo0N0_p_tKF"
  },
  "title" : "makeSpecularDescriptor(fromCube:)"
}
-->

# makeSpecularDescriptor(fromCube:)

Returns a recommended image based light specular cube texture descriptor
(for [`generateSpecular(using:fromSkyboxCube:quality:into:)`](/documentation/RealityKit/ImageBasedLightTextureGenerator/generateSpecular(using:fromSkyboxCube:quality:into:))).

```
func makeSpecularDescriptor(fromCube texture: any MTLTexture) throws -> MTLTextureDescriptor
```

## Discussion> Throws: If `texture` is not a cube texture.

---

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)