UpdateWithTimelineSemaphoresAsync Method
Updates the surface contents using an imported memory image using a semaphore pair as the means of synchronization
Definition
Namespace: Avalonia.Rendering.Composition
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public Task UpdateWithTimelineSemaphoresAsync(
ICompositionImportedGpuImage image,
ICompositionImportedGpuSemaphore waitForSemaphore,
ulong waitForValue,
ICompositionImportedGpuSemaphore signalSemaphore,
ulong signalValue
)
Public Function UpdateWithTimelineSemaphoresAsync (
image As ICompositionImportedGpuImage,
waitForSemaphore As ICompositionImportedGpuSemaphore,
waitForValue As ULong,
signalSemaphore As ICompositionImportedGpuSemaphore,
signalValue As ULong
) As Task
member UpdateWithTimelineSemaphoresAsync :
image : ICompositionImportedGpuImage *
waitForSemaphore : ICompositionImportedGpuSemaphore *
waitForValue : uint64 *
signalSemaphore : ICompositionImportedGpuSemaphore *
signalValue : uint64 -> Task
Parameters
- ICompositionImportedGpuImage
- GPU image with new surface contents
- ICompositionImportedGpuSemaphore
- The semaphore to wait for before accessing the image
- UInt64
- ICompositionImportedGpuSemaphore
- The semaphore to signal after accessing the image
- UInt64
Return Value
Task
A task that completes when update operation is completed and user code is free to destroy or dispose the image
See Also
Reference
CompositionDrawingSurface Class
Avalonia.Rendering.Composition Namespace