Class WebGPUExternalSurfaceOptions
- Namespace
- SixLabors.ImageSharp.Drawing.Processing.Backends
- Assembly
- SixLabors.ImageSharp.Drawing.WebGPU.dll
Options for creating a WebGPUExternalSurface.
public sealed class WebGPUExternalSurfaceOptions
- Inheritance
-
WebGPUExternalSurfaceOptions
- Inherited Members
Remarks
Only values that are meaningful for an externally-owned surface are exposed here. Lifecycle, title, position, border, and state belong to the host application and its UI framework.
Properties
AlphaMode
Gets or sets how the native compositor interprets the surface alpha channel.
public WebGPUCompositeAlphaMode AlphaMode { get; set; }
Property Value
Remarks
The requested mode is used when available. Otherwise, a compatible mode is selected automatically.
Format
Gets or sets the swapchain texture format used by acquired frames.
public WebGPUTextureFormat Format { get; set; }
Property Value
Remarks
The requested format is used when available. Otherwise, a compatible format is selected automatically.
PresentMode
Gets or sets how completed frames are queued for presentation to the display.
public WebGPUPresentMode PresentMode { get; set; }
Property Value
Remarks
When the requested mode is unavailable, Fifo is used.