Freigeben über


MPSBinaryImageKernel.EncodeToCommandBuffer Methode

Definition

Überlädt

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

Codiert den Kernel in commandBuffer, wodurch das Ergebnis des Anwendens des Kernels auf primaryTexture und secondaryTextureüberschrieben destinationTexture wird.

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, NSObject, MPSCopyAllocator)

Versucht, den Kernel auf inPlaceSecondaryTextureanzuwenden, wobei copyAllocator verwendet wird, um eine neue Textur zuzuweisen und in eine neue Textur zu schreiben, wenn die direkte Anwendung fehlschlägt.

EncodeToCommandBuffer(IMTLCommandBuffer, NSObject, IMTLTexture, MPSCopyAllocator)

Versucht, den Kernel auf inPlacePrimaryTextureanzuwenden, wobei copyAllocator verwendet wird, um eine neue Textur zuzuweisen und in eine neue Textur zu schreiben, wenn die direkte Anwendung fehlschlägt.

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

Parameter

commandBuffer
IMTLCommandBuffer
primaryImage
MPSImage
secondaryImage
MPSImage
destinationImage
MPSImage
Attribute

Gilt für:

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, IMTLTexture, IMTLTexture)

Codiert den Kernel in commandBuffer, wodurch das Ergebnis des Anwendens des Kernels auf primaryTexture und secondaryTextureüberschrieben destinationTexture wird.

[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

Parameter

commandBuffer
IMTLCommandBuffer
primaryTexture
IMTLTexture
secondaryTexture
IMTLTexture
destinationTexture
IMTLTexture
Attribute

Gilt für:

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, NSObject, MPSCopyAllocator)

Versucht, den Kernel auf inPlaceSecondaryTextureanzuwenden, wobei copyAllocator verwendet wird, um eine neue Textur zuzuweisen und in eine neue Textur zu schreiben, wenn die direkte Anwendung fehlschlägt.

[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

Parameter

commandBuffer
IMTLCommandBuffer
primaryTexture
IMTLTexture
inPlaceSecondaryTexture
NSObject
copyAllocator
MPSCopyAllocator

Muss hinzugefügt werden.

Dieser Parameter kann null sein.

Gibt zurück

true , wenn die direkte Anwendung erfolgreich ist. Andernfalls wird falsezurückgegeben.

Attribute

Hinweise

Wenn false zurückgegeben wird und ein Nicht-NULL-Kopierverteiler angegeben wurde, inPlaceSecondaryTexture zeigt auf die neu zugewiesene Textur.

Gilt für:

EncodeToCommandBuffer(IMTLCommandBuffer, NSObject, IMTLTexture, MPSCopyAllocator)

Versucht, den Kernel auf inPlacePrimaryTextureanzuwenden, wobei copyAllocator verwendet wird, um eine neue Textur zuzuweisen und in eine neue Textur zu schreiben, wenn die direkte Anwendung fehlschlägt.

[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

Parameter

commandBuffer
IMTLCommandBuffer
inPlacePrimaryTexture
NSObject
secondaryTexture
IMTLTexture
copyAllocator
MPSCopyAllocator

Muss hinzugefügt werden.

Dieser Parameter kann null sein.

Gibt zurück

true , wenn die direkte Anwendung erfolgreich ist. Andernfalls wird falsezurückgegeben.

Attribute

Hinweise

Wenn false zurückgegeben wird und ein Nicht-NULL-Kopierverteiler angegeben wurde, inPlacePrimaryTexture zeigt auf die neu zugewiesene Textur.

Gilt für: