Skip to content

Class Swapchain

Namespace: Apogee.Graphics
Assembly: Apogee.Graphics.dll

The images of a window, which the frame loop acquires, renders to and presents. Made by .

public abstract class Swapchain : IDisposable

Inheritance

object ← Swapchain

Derived

MetalSwapchain, VulkanSwapchain

Implements

IDisposable

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

Format

The format of the images: UNORM, because shaders write sRGB-encoded values themselves.

public abstract PixelFormat Format { get; }

Property Value

PixelFormat

Height

public abstract uint Height { get; }

Property Value

uint

ImageCount

public abstract int ImageCount { get; }

Property Value

int

IsStale

The window's size is no longer the images' size.

public abstract bool IsStale { get; }

Property Value

bool

IsZeroSized

public abstract bool IsZeroSized { get; }

Property Value

bool

VSync

public abstract bool VSync { get; }

Property Value

bool

Width

public abstract uint Width { get; }

Property Value

uint

Methods

Dispose()

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

public abstract void Dispose()

Recreate()

Makes the images fit the window again.

public abstract void Recreate()