Class WindowsSurfaceFactory
Namespace: VelloSharp.Windows
Assembly: VelloSharp.Windows.Core.dll
public static class WindowsSurfaceFactory
Inheritance
object ← WindowsSurfaceFactory
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
EnsureSwapChainSurface(WindowsGpuContextLease, IWindowsSurfaceSource, WindowsSwapChainSurface?)
public static WindowsSwapChainSurface? EnsureSwapChainSurface(WindowsGpuContextLease lease, IWindowsSurfaceSource source, WindowsSwapChainSurface? current)
Parameters
lease
WindowsGpuContextLease
source
IWindowsSurfaceSource
current
WindowsSwapChainSurface?
Returns
EnsureSwapChainSurface(WindowsGpuContextLease, IWindowsSurfaceSource, WindowsSwapChainSurface?, WindowsSurfaceSize)
public static WindowsSwapChainSurface? EnsureSwapChainSurface(WindowsGpuContextLease lease, IWindowsSurfaceSource source, WindowsSwapChainSurface? current, WindowsSurfaceSize size)
Parameters
lease
WindowsGpuContextLease
source
IWindowsSurfaceSource
current
WindowsSwapChainSurface?
size
WindowsSurfaceSize
Returns
HandleDeviceLoss(WindowsGpuContext, IWindowsSurfaceSource, string?)
public static void HandleDeviceLoss(WindowsGpuContext context, IWindowsSurfaceSource source, string? reason)
Parameters
context
WindowsGpuContext
source
IWindowsSurfaceSource
reason
string?
ReleaseSwapChain(IWindowsSurfaceSource, WindowsSwapChainSurface?)
public static void ReleaseSwapChain(IWindowsSurfaceSource source, WindowsSwapChainSurface? surface)
Parameters
source
IWindowsSurfaceSource
surface
WindowsSwapChainSurface?