Compartilhar via


MPSBinaryImageKernel.EncodeToCommandBuffer Método

Definição

Sobrecargas

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

Codifica o kernel para commandBuffer, que substituirá destinationTexture pelo resultado da aplicação do kernel a primaryTexture e secondaryTexture.

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, NSObject, MPSCopyAllocator)

Tenta aplicar o kernel a inPlaceSecondaryTexture, usando copyAllocator para alocar e gravar em uma nova textura se o aplicativo in-loco falhar.

EncodeToCommandBuffer(IMTLCommandBuffer, NSObject, IMTLTexture, MPSCopyAllocator)

Tenta aplicar o kernel a inPlacePrimaryTexture, usando copyAllocator para alocar e gravar em uma nova textura se o aplicativo in-loco falhar.

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

Aplica-se a

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, IMTLTexture, IMTLTexture)

Codifica o kernel para commandBuffer, que substituirá destinationTexture pelo resultado da aplicação do 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

Parâmetros

commandBuffer
IMTLCommandBuffer
primaryTexture
IMTLTexture
secondaryTexture
IMTLTexture
destinationTexture
IMTLTexture
Atributos

Aplica-se a

EncodeToCommandBuffer(IMTLCommandBuffer, IMTLTexture, NSObject, MPSCopyAllocator)

Tenta aplicar o kernel a inPlaceSecondaryTexture, usando copyAllocator para alocar e gravar em uma nova textura se o aplicativo in-loco falhar.

[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

A ser adicionado.

Esse parâmetro pode ser null.

Retornos

true se o aplicativo in-loco for bem-sucedido. Caso contrário, retorna false.

Atributos

Comentários

Se false for retornado e um alocador de cópia não nulo tiver sido fornecido, inPlaceSecondaryTexture apontará para a textura recém-alocada.

Aplica-se a

EncodeToCommandBuffer(IMTLCommandBuffer, NSObject, IMTLTexture, MPSCopyAllocator)

Tenta aplicar o kernel a inPlacePrimaryTexture, usando copyAllocator para alocar e gravar em uma nova textura se o aplicativo in-loco falhar.

[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

A ser adicionado.

Esse parâmetro pode ser null.

Retornos

true se o aplicativo in-loco for bem-sucedido. Caso contrário, retorna false.

Atributos

Comentários

Se false for retornado e um alocador de cópia não nulo tiver sido fornecido, inPlacePrimaryTexture apontará para a textura recém-alocada.

Aplica-se a