Compartir a través de


MPSBinaryImageKernel.EncodeToCommandBuffer Método

Definición

Sobrecargas

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

Codifica el kernel en commandBuffer, que sobrescribirá destinationTexture con el resultado de aplicar el kernel a primaryTexture y secondaryTexture.

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, NSObject, MPSCopyAllocator)

Intenta aplicar el kernel a inPlaceSecondaryTexture, mediante copyAllocator para asignar y escribir en una nueva textura si se produce un error en la aplicación local.

EncodeToCommandBuffer(IMTLCommandBuffer, NSObject, IMTLTexture, MPSCopyAllocator)

Intenta aplicar el kernel a inPlacePrimaryTexture, mediante copyAllocator para asignar y escribir en una nueva textura si se produce un error en la aplicación local.

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

Parámetros

commandBuffer
IMTLCommandBuffer
primaryImage
MPSImage
secondaryImage
MPSImage
destinationImage
MPSImage
Atributos

Se aplica a

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, IMTLTexture, IMTLTexture)

Codifica el kernel en commandBuffer, que sobrescribirá destinationTexture con el resultado de aplicar el kernel a primaryTexture y 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

Parámetros

commandBuffer
IMTLCommandBuffer
primaryTexture
IMTLTexture
secondaryTexture
IMTLTexture
destinationTexture
IMTLTexture
Atributos

Se aplica a

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, NSObject, MPSCopyAllocator)

Intenta aplicar el kernel a inPlaceSecondaryTexture, mediante copyAllocator para asignar y escribir en una nueva textura si se produce un error en la aplicación local.

[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

Parámetros

commandBuffer
IMTLCommandBuffer
primaryTexture
IMTLTexture
inPlaceSecondaryTexture
NSObject
copyAllocator
MPSCopyAllocator

Se agregará.

Este parámetro puede ser null.

Devoluciones

true si la aplicación local se realiza correctamente. De lo contrario, devuelve false.

Atributos

Comentarios

Si false se devuelve y se proporcionó un asignador de copia que no sea NULL, inPlaceSecondaryTexture apuntará a la textura recién asignada.

Se aplica a

EncodeToCommandBuffer(IMTLCommandBuffer, NSObject, IMTLTexture, MPSCopyAllocator)

Intenta aplicar el kernel a inPlacePrimaryTexture, mediante copyAllocator para asignar y escribir en una nueva textura si se produce un error en la aplicación local.

[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

Parámetros

commandBuffer
IMTLCommandBuffer
inPlacePrimaryTexture
NSObject
secondaryTexture
IMTLTexture
copyAllocator
MPSCopyAllocator

Se agregará.

Este parámetro puede ser null.

Devoluciones

true si la aplicación local se realiza correctamente. De lo contrario, devuelve false.

Atributos

Comentarios

Si false se devuelve y se proporcionó un asignador de copia que no sea NULL, inPlacePrimaryTexture apuntará a la textura recién asignada.

Se aplica a