makeDescriptor(fromEquirectangular:)
Returns a recommended skybox cube texture descriptor (for Generateskybox(using:fromequirectangular:quality:into:)).
Declaration
func makeDescriptor(fromEquirectangular texture: any MTLTexture) throws -> MTLTextureDescriptorDiscussion
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:).