Skip to main content

ICompositionGpuInterop Interface

Not client implementable.

Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.

Definition

Namespace: Avalonia.Rendering.Composition
Assembly: Avalonia.Base (in Avalonia.Base.dll)

[NotClientImplementableAttribute]
public interface ICompositionGpuInterop

Properties

DeviceLuidThe LUID of the graphics adapter used by the compositor
DeviceUuidThe UUID of the graphics adapter used by the compositor
IsLostIndicates if the device context this instance is associated with is no longer available
SupportedImageHandleTypesReturns the list of image handle types supported by the current GPU backend, see KnownPlatformGraphicsExternalImageHandleTypes
SupportedSemaphoreTypesReturns the list of semaphore types supported by the current GPU backend, see KnownPlatformGraphicsExternalSemaphoreHandleTypes

Methods

GetSynchronizationCapabilities(String)Returns the supported ways to synchronize access to the imported GPU image
ImportImage(ICompositionImportableSharedGpuContextImage)Asynchronously imports a texture. The returned object is immediately usable. If import operation fails, the caller is responsible for destroying the handle
ImportImage(IPlatformHandle, PlatformGraphicsExternalImageProperties)Asynchronously imports a texture. The returned object is immediately usable.
ImportSemaphore(ICompositionImportableSharedGpuContextSemaphore)Asynchronously imports a semaphore object. The returned object is immediately usable.
ImportSemaphore(IPlatformHandle)Asynchronously imports a semaphore object. The returned object is immediately usable. If import operation fails, the caller is responsible for destroying the handle

See Also

Reference

Avalonia.Rendering.Composition Namespace