共用方式為


MPSBinaryImageKernel.EncodeToCommandBuffer 方法

定義

多載

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

將核心編碼為 commandBuffer ,這會以將核心套用至 primaryTexturesecondaryTexture 的結果覆寫 destinationTexture

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, NSObject, MPSCopyAllocator)

嘗試在就地應用程式失敗時,使用 copyAllocator 將核心套用至 inPlaceSecondaryTexture ,以配置並寫入新的紋理。

EncodeToCommandBuffer(IMTLCommandBuffer, NSObject, IMTLTexture, MPSCopyAllocator)

嘗試在就地應用程式失敗時,使用 copyAllocator 將核心套用至 inPlacePrimaryTexture ,以配置並寫入新的紋理。

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

參數

commandBuffer
IMTLCommandBuffer
primaryImage
MPSImage
secondaryImage
MPSImage
destinationImage
MPSImage
屬性

適用於

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, IMTLTexture, IMTLTexture)

將核心編碼為 commandBuffer ,這會以將核心套用至 primaryTexturesecondaryTexture 的結果覆寫 destinationTexture

[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

參數

commandBuffer
IMTLCommandBuffer
primaryTexture
IMTLTexture
secondaryTexture
IMTLTexture
destinationTexture
IMTLTexture
屬性

適用於

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, NSObject, MPSCopyAllocator)

嘗試在就地應用程式失敗時,使用 copyAllocator 將核心套用至 inPlaceSecondaryTexture ,以配置並寫入新的紋理。

[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

參數

commandBuffer
IMTLCommandBuffer
primaryTexture
IMTLTexture
inPlaceSecondaryTexture
NSObject
copyAllocator
MPSCopyAllocator

即將加入。

這個參數可以是 null

傳回

true 如果就地應用程式成功,則為 。 否則傳回 false

屬性

備註

如果 false 傳回 ,並提供非 Null 複製配置器, inPlaceSecondaryTexture 則會指向新配置的紋理。

適用於

EncodeToCommandBuffer(IMTLCommandBuffer, NSObject, IMTLTexture, MPSCopyAllocator)

嘗試在就地應用程式失敗時,使用 copyAllocator 將核心套用至 inPlacePrimaryTexture ,以配置並寫入新的紋理。

[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

參數

commandBuffer
IMTLCommandBuffer
inPlacePrimaryTexture
NSObject
secondaryTexture
IMTLTexture
copyAllocator
MPSCopyAllocator

即將加入。

這個參數可以是 null

傳回

true 如果就地應用程式成功,則為 。 否則傳回 false

屬性

備註

如果 false 傳回 ,並提供非 Null 複製配置器, inPlacePrimaryTexture 則會指向新配置的紋理。

適用於