Edytuj

Udostępnij za pośrednictwem


MPSBinaryImageKernel.EncodeToCommandBuffer Method

Definition

Overloads

EncodeToCommandBuffer(IMTLCommandBuffer, MPSImage, MPSImage, MPSImage)
EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, IMTLTexture, IMTLTexture)

Encodes the kernel to commandBuffer, which will overwrite destinationTexture with the result of applying the kernel to primaryTexture and secondaryTexture.

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, NSObject, MPSCopyAllocator)

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

EncodeToCommandBuffer(IMTLCommandBuffer, NSObject, IMTLTexture, MPSCopyAllocator)

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

EncodeToCommandBuffer(IMTLCommandBuffer, MPSImage, MPSImage, MPSImage)

[Foundation.Export("encodeToCommandBuffer:primaryImage:secondaryImage: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 primaryImage, MetalPerformanceShaders.MPSImage secondaryImage, MetalPerformanceShaders.MPSImage destinationImage);
abstract member EncodeToCommandBuffer : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSImage * MetalPerformanceShaders.MPSImage * MetalPerformanceShaders.MPSImage -> unit
override this.EncodeToCommandBuffer : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSImage * MetalPerformanceShaders.MPSImage * MetalPerformanceShaders.MPSImage -> unit

Parameters

commandBuffer
IMTLCommandBuffer
primaryImage
MPSImage
secondaryImage
MPSImage
destinationImage
MPSImage
Attributes

Applies to

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, IMTLTexture, IMTLTexture)

Encodes the kernel to commandBuffer, which will overwrite destinationTexture with the result of applying the kernel to primaryTexture and secondaryTexture.

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

Parameters

commandBuffer
IMTLCommandBuffer
primaryTexture
IMTLTexture
secondaryTexture
IMTLTexture
destinationTexture
IMTLTexture
Attributes

Applies to

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, NSObject, MPSCopyAllocator)

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

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

Parameters

commandBuffer
IMTLCommandBuffer
primaryTexture
IMTLTexture
inPlaceSecondaryTexture
NSObject
copyAllocator
MPSCopyAllocator

To be added.

This parameter can be null.

Returns

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

Attributes

Remarks

If false is returned and a non-null copy allocator was supplied, inPlaceSecondaryTexture will point to the newly allocated texture.

Applies to

EncodeToCommandBuffer(IMTLCommandBuffer, NSObject, IMTLTexture, MPSCopyAllocator)

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

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

Parameters

commandBuffer
IMTLCommandBuffer
inPlacePrimaryTexture
NSObject
secondaryTexture
IMTLTexture
copyAllocator
MPSCopyAllocator

To be added.

This parameter can be null.

Returns

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

Attributes

Remarks

If false is returned and a non-null copy allocator was supplied, inPlacePrimaryTexture will point to the newly allocated texture.

Applies to