MPSBinaryImageKernel.EncodeToCommandBuffer Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
EncodeToCommandBuffer(IMTLCommandBuffer, MPSImage, MPSImage, MPSImage) | |
EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, IMTLTexture, IMTLTexture) |
Codifica il kernel in |
EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, NSObject, MPSCopyAllocator) |
Tenta di applicare il kernel a |
EncodeToCommandBuffer(IMTLCommandBuffer, NSObject, IMTLTexture, MPSCopyAllocator) |
Tenta di applicare il kernel a |
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
Parametri
- commandBuffer
- IMTLCommandBuffer
- primaryImage
- MPSImage
- secondaryImage
- MPSImage
- destinationImage
- MPSImage
- Attributi
Si applica a
EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, IMTLTexture, IMTLTexture)
Codifica il kernel in commandBuffer
, che sovrascriverà destinationTexture
il risultato dell'applicazione del kernel a primaryTexture
e 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
Parametri
- commandBuffer
- IMTLCommandBuffer
- primaryTexture
- IMTLTexture
- secondaryTexture
- IMTLTexture
- destinationTexture
- IMTLTexture
- Attributi
Si applica a
EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, NSObject, MPSCopyAllocator)
Tenta di applicare il kernel a inPlaceSecondaryTexture
, usando copyAllocator
per allocare e scrivere in una nuova trama se l'applicazione sul posto ha esito negativo.
[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
Parametri
- commandBuffer
- IMTLCommandBuffer
- primaryTexture
- IMTLTexture
- inPlaceSecondaryTexture
- NSObject
Restituisce
true
se l'applicazione sul posto ha esito positivo. In caso contrario, restituisce false
.
- Attributi
Commenti
Se false
viene restituito e viene fornito un allocatore di copia non Null, inPlaceSecondaryTexture
punta alla trama appena allocata.
Si applica a
EncodeToCommandBuffer(IMTLCommandBuffer, NSObject, IMTLTexture, MPSCopyAllocator)
Tenta di applicare il kernel a inPlacePrimaryTexture
, usando copyAllocator
per allocare e scrivere in una nuova trama se l'applicazione sul posto ha esito negativo.
[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
Parametri
- commandBuffer
- IMTLCommandBuffer
- inPlacePrimaryTexture
- NSObject
- secondaryTexture
- IMTLTexture
Restituisce
true
se l'applicazione sul posto ha esito positivo. In caso contrario, restituisce false
.
- Attributi
Commenti
Se false
viene restituito e viene fornito un allocatore di copia non Null, inPlacePrimaryTexture
punta alla trama appena allocata.