Initializer

init(commandBuffer:imageDescriptor:)

Initializes a temporary image for use on a command buffer.

Declaration

convenience init(commandBuffer: MTLCommandBuffer, imageDescriptor: MPSImageDescriptor)

Parameters

commandBuffer

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

imageDescriptor

An image descriptor that describes the image to create.

Return Value

A valid MPSTemporaryImage object.

Discussion

The temporary image will be released when the command buffer is committed. The underlying texture will become invalid before this time due to the action of the readCount property.

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