Edit

Share via


MPSCopyAllocator Delegate

Definition

Commands to copy a source texture to a new location. Used for out-of-place filters.

public delegate Foundation.NSObject MPSCopyAllocator(MPSKernel filter, NSObject commandBuffer, NSObject sourceTexture);
type MPSCopyAllocator = delegate of MPSKernel * NSObject * NSObject -> NSObject

Parameters

filter
MPSKernel

The MPSKernel that is requesting the memory.

commandBuffer
NSObject

A command buffer that gets the device on which to allocate space for the texture data, along with optional commands to initialize the texture with an encoder.

sourceTexture
NSObject

The source image.

Return Value

Returns a IMTLTexture into which texture data can be written.

Remarks

Application developers must not enque the commandBuffer parameter, enqueue it, nor wait for scheduling events on it.

Applies to