Contents

optimizeContentsForGPUAccess(texture:)

Encodes a command that improves the performance of GPU memory operations with a texture.

Declaration

func optimizeContentsForGPUAccess(texture: any MTLTexture)

Parameters

  • texture:

    A texture the command optimizes.

Mentioned in

Discussion

This command can reduce the time it takes the GPU to access a texture. Apps typically run the command for:

When a blit pass runs this command, the GPU only applies lossless changes to the texture’s underlying data.

See Also

Optimizing textures for GPU access