Interface IRenderSurfaceManager
Namespace: VelloSharp.Avalonia.Core.Surface
Assembly: VelloSharp.Avalonia.Core.dll
Coordinates acquisition of renderable surfaces backed by native swapchains or framebuffers.
public interface IRenderSurfaceManager
Methods
TryAcquireSurfaceAsync(GraphicsDeviceLease, SurfaceRequest, CancellationToken)
Attempts to acquire a surface compatible with the provided device and request.
ValueTask<RenderSurfaceLease?> TryAcquireSurfaceAsync(GraphicsDeviceLease device, SurfaceRequest request, CancellationToken cancellationToken = default)
Parameters
device GraphicsDeviceLease
request SurfaceRequest
cancellationToken CancellationToken
Returns
ValueTask<RenderSurfaceLease?>
Remarks
The operation may be asynchronous when platform constraints require a thread switch (e.g., macOS).