Contents

optimizeContents(forCPUAccess:)

Encodes a command that modifies the contents of a texture to improve the performance of CPU accesses to its contents.

Declaration

func optimizeContents(forCPUAccess texture: any MTLTexture)

Parameters

  • texture:

    A Mtltexture instance the command optimizes for CPU access.

Discussion

Optimizing a texture for CPU access may affect the performance of GPU accesses, however, the data the GPU retrieves from the texture remains consistent.

You typically use this command for:

See Also

Encoding optimization commands