MPSUnaryImageKernel.EncodeToCommandBuffer Method

Definition

Overloads

EncodeToCommandBuffer(IMTLCommandBuffer, NSObject, MPSCopyAllocator)

Attempts to apply the kernel to texture, using copyAllocator to allocate and write to a new texture if in-place application fails.

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, IMTLTexture)

Encodes the kernel to commandBuffer, which will overwrite destinationTexture with the result of applying the kernel to sourceTexture.

EncodeToCommandBuffer(IMTLCommandBuffer, MPSImage, MPSImage)

EncodeToCommandBuffer(IMTLCommandBuffer, NSObject, MPSCopyAllocator)

Attempts to apply the kernel to texture, using copyAllocator to allocate and write to a new texture if in-place application fails.

[Foundation.Export("encodeToCommandBuffer:inPlaceTexture:fallbackCopyAllocator:")]
public virtual bool EncodeToCommandBuffer (Metal.IMTLCommandBuffer commandBuffer, out Foundation.NSObject texture, MetalPerformanceShaders.MPSCopyAllocator copyAllocator);
abstract member EncodeToCommandBuffer : Metal.IMTLCommandBuffer *  * MetalPerformanceShaders.MPSCopyAllocator -> bool
override this.EncodeToCommandBuffer : Metal.IMTLCommandBuffer *  * MetalPerformanceShaders.MPSCopyAllocator -> bool

Parameters

commandBuffer
IMTLCommandBuffer
texture
NSObject
copyAllocator
MPSCopyAllocator

To be added.

This parameter can be null.

Returns

true if in-place application succeeds. Otherwise, returns false.

Attributes

Remarks

If true is returned and a non-null copy allocator was supplied, texture will point to the newly allocated texture, whether in-place or out-of-place. If no copy allocator is supplied, the reference texture remains unchanged on failure.

Applies to

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, IMTLTexture)

Encodes the kernel to commandBuffer, which will overwrite destinationTexture with the result of applying the kernel to sourceTexture.

[Foundation.Export("encodeToCommandBuffer:sourceTexture:destinationTexture:")]
public virtual void EncodeToCommandBuffer (Metal.IMTLCommandBuffer commandBuffer, Metal.IMTLTexture sourceTexture, Metal.IMTLTexture destinationTexture);
abstract member EncodeToCommandBuffer : Metal.IMTLCommandBuffer * Metal.IMTLTexture * Metal.IMTLTexture -> unit
override this.EncodeToCommandBuffer : Metal.IMTLCommandBuffer * Metal.IMTLTexture * Metal.IMTLTexture -> unit

Parameters

commandBuffer
IMTLCommandBuffer
sourceTexture
IMTLTexture
destinationTexture
IMTLTexture
Attributes

Applies to

EncodeToCommandBuffer(IMTLCommandBuffer, MPSImage, MPSImage)

[Foundation.Export("encodeToCommandBuffer:sourceImage:destinationImage:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void EncodeToCommandBuffer (Metal.IMTLCommandBuffer commandBuffer, MetalPerformanceShaders.MPSImage sourceImage, MetalPerformanceShaders.MPSImage destinationImage);
abstract member EncodeToCommandBuffer : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSImage * MetalPerformanceShaders.MPSImage -> unit
override this.EncodeToCommandBuffer : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSImage * MetalPerformanceShaders.MPSImage -> unit

Parameters

commandBuffer
IMTLCommandBuffer
sourceImage
MPSImage
destinationImage
MPSImage
Attributes

Applies to