init(commandBuffer:imageDescriptor:)
Initializes a temporary image for use on a command buffer.
Declaration
convenience init(commandBuffer: any 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.