MPSBinaryImageKernel.EncodeToCommandBuffer 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
EncodeToCommandBuffer(IMTLCommandBuffer, MPSImage, MPSImage, MPSImage) | |
EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, IMTLTexture, IMTLTexture) |
將核心編碼為 |
EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, NSObject, MPSCopyAllocator) |
嘗試在就地應用程式失敗時,使用 |
EncodeToCommandBuffer(IMTLCommandBuffer, NSObject, IMTLTexture, MPSCopyAllocator) |
嘗試在就地應用程式失敗時,使用 |
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
,這會以將核心套用至 primaryTexture
和 secondaryTexture
的結果覆寫 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
傳回
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
傳回
true
如果就地應用程式成功,則為 。 否則傳回 false
。
- 屬性
備註
如果 false
傳回 ,並提供非 Null 複製配置器, inPlacePrimaryTexture
則會指向新配置的紋理。