---
title: "makeDescriptor(fromEquirectangular:)"
framework: realitykit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "realitykit/skyboxgenerator/makedescriptor(fromequirectangular:)"
---

# makeDescriptor(fromEquirectangular:)

Returns a recommended skybox cube texture descriptor (for generateSkybox(using:fromEquirectangular:quality:into:)).

## Declaration

```swift
func makeDescriptor(fromEquirectangular texture: any MTLTexture) throws -> MTLTextureDescriptor
```

## Discussion

Discussion The dimensions of the cubemap are chosen so that the resolution of the input texture is approximately preserved. This method allocates mipmap by default, as mipmaps are needed by generateDiffuse(using:fromSkyboxCube:quality:into:) and generateSpecular(using:fromSkyboxCube:quality:into:). note: If texture is not a 2D Metal texture.

## See Also

### Generating a skybox

- [generateSkybox(using:fromEquirectangular:quality:into:)](realitykit/skyboxgenerator/generateskybox(using:fromequirectangular:quality:into:).md)
