Type Method


A method that helps the framework decide which allocations to make ahead of time.


class func prefetchStorage(with commandBuffer: MTLCommandBuffer, imageDescriptorList descriptorList: [MPSImageDescriptor])



The command buffer on which the temporary images will be exclusively used.


An array of image descriptors that describe the temporary images that will be created.


The texture cache that underlies the temporary images can automatically allocate new storage as needed, whenever you create new temporary images. However, sometimes a more global view of what you plan to make is useful for maximizing memory reuse to get the most efficient operation. Calling this class method provides a hint to the texture cache about what the list of temporary images will be.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software