CompositionDrawingSurfaceUpdateWithSemaphoresAsync Method
Updates the surface contents using an imported memory image using a semaphore pair as the means of synchronization
Namespace: Avalonia.Rendering.CompositionAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public Task UpdateWithSemaphoresAsync(
ICompositionImportedGpuImage image,
ICompositionImportedGpuSemaphore waitForSemaphore,
ICompositionImportedGpuSemaphore signalSemaphore
)
Public Function UpdateWithSemaphoresAsync (
image As ICompositionImportedGpuImage,
waitForSemaphore As ICompositionImportedGpuSemaphore,
signalSemaphore As ICompositionImportedGpuSemaphore
) As Task
member UpdateWithSemaphoresAsync :
image : ICompositionImportedGpuImage *
waitForSemaphore : ICompositionImportedGpuSemaphore *
signalSemaphore : ICompositionImportedGpuSemaphore -> Task
- image ICompositionImportedGpuImage
- GPU image with new surface contents
- waitForSemaphore ICompositionImportedGpuSemaphore
- The semaphore to wait for before accessing the image
- signalSemaphore ICompositionImportedGpuSemaphore
- The semaphore to signal after accessing the image
TaskA task that completes when update operation is completed and user code is free to destroy or dispose the image