Class WindowsGpuContext
Namespace: VelloSharp.Windows
Assembly: VelloSharp.Windows.Core.dll
public sealed class WindowsGpuContext : IDisposable
Inheritance
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Properties
Adapter
public WgpuAdapter Adapter { get; }
Property Value
Device
public WgpuDevice Device { get; }
Property Value
DeviceFeatures
public WgpuFeature DeviceFeatures { get; }
Property Value
Diagnostics
public WindowsGpuDiagnostics Diagnostics { get; }
Property Value
IsWarpFallback
public bool IsWarpFallback { get; }
Property Value
Options
public VelloGraphicsDeviceOptions Options { get; }
Property Value
Queue
public WgpuQueue Queue { get; }
Property Value
Renderer
public WgpuRenderer Renderer { get; }
Property Value
Methods
Acquire(VelloGraphicsDeviceOptions?)
public static WindowsGpuContextLease Acquire(VelloGraphicsDeviceOptions? options = null)
Parameters
options
VelloGraphicsDeviceOptions?
Returns
CreateSwapChainSurface(WindowsSurfaceDescriptor, uint, uint)
public WindowsSwapChainSurface CreateSwapChainSurface(WindowsSurfaceDescriptor surfaceDescriptor, uint width, uint height)
Parameters
surfaceDescriptor
WindowsSurfaceDescriptor
width
uint
height
uint
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()