Skip to main content

Class WindowsGpuContext

Namespace: VelloSharp.Windows
Assembly: VelloSharp.Windows.Core.dll

public sealed class WindowsGpuContext : IDisposable

Inheritance​

object ← WindowsGpuContext

Implements​

IDisposable

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​

WgpuAdapter

Device​

public WgpuDevice Device { get; }

Property Value​

WgpuDevice

DeviceFeatures​

public WgpuFeature DeviceFeatures { get; }

Property Value​

WgpuFeature

Diagnostics​

public WindowsGpuDiagnostics Diagnostics { get; }

Property Value​

WindowsGpuDiagnostics

IsWarpFallback​

public bool IsWarpFallback { get; }

Property Value​

bool

Options​

public VelloGraphicsDeviceOptions Options { get; }

Property Value​

VelloGraphicsDeviceOptions

Queue​

public WgpuQueue Queue { get; }

Property Value​

WgpuQueue

Renderer​

public WgpuRenderer Renderer { get; }

Property Value​

WgpuRenderer

Methods​

Acquire(VelloGraphicsDeviceOptions?)​

public static WindowsGpuContextLease Acquire(VelloGraphicsDeviceOptions? options = null)

Parameters​

options VelloGraphicsDeviceOptions?

Returns​

WindowsGpuContextLease

CreateSwapChainSurface(WindowsSurfaceDescriptor, uint, uint)​

public WindowsSwapChainSurface CreateSwapChainSurface(WindowsSurfaceDescriptor surfaceDescriptor, uint width, uint height)

Parameters​

surfaceDescriptor WindowsSurfaceDescriptor

width uint

height uint

Returns​

WindowsSwapChainSurface

Dispose()​

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()