Contents

generateDiffuse(using:fromSkyboxCube:quality:into:)

Adds commands for generating an image based light diffuse texture from a skybox cube.

Declaration

func generateDiffuse(using commandBuffer: any MTLCommandBuffer, fromSkyboxCube texture: any MTLTexture, quality: TextureSamplingQuality = .low, into destination: any MTLTexture) throws

Parameters

  • commandBuffer:

    The command buffer to dispatch GPU work to generate Image Based Light Diffuse

  • texture:

    The source image cube skybox texture, which must have mipmaps.

  • quality:

    The sampling quality the method applies as it generates the cube texture.

  • destination:

    The destination cube texture. Use Makediffusedescriptor(fromcube:) to get a recommended descriptor for creating the destination texture.

Discussion

See Also

Generating IBL textures