Struct SwapchainDescription
- Namespace
- NeoVeldrid
- Assembly
- NeoVeldrid.dll
Describes a Swapchain, for creation via a ResourceFactory.
public struct SwapchainDescription : IEquatable<SwapchainDescription>
- Implements
- Inherited Members
Constructors
SwapchainDescription(SwapchainSource, uint, uint, PixelFormat?, bool)
Constructs a new SwapchainDescription.
public SwapchainDescription(SwapchainSource source, uint width, uint height, PixelFormat? depthFormat, bool syncToVerticalBlank)
Parameters
sourceSwapchainSourceThe SwapchainSource which will be used as the target of rendering operations. This is a window-system-specific object which differs by platform.
widthuintThe initial width of the Swapchain surface.
heightuintThe initial height of the Swapchain surface.
depthFormatPixelFormat?The optional format of the depth target of the Swapchain's Framebuffer. If non-null, this must be a valid depth Texture format. If null, then no depth target will be created.
syncToVerticalBlankboolIndicates whether presentation of the Swapchain will be synchronized to the window system's vertical refresh rate.
SwapchainDescription(SwapchainSource, uint, uint, PixelFormat?, bool, bool)
Constructs a new SwapchainDescription.
public SwapchainDescription(SwapchainSource source, uint width, uint height, PixelFormat? depthFormat, bool syncToVerticalBlank, bool colorSrgb)
Parameters
sourceSwapchainSourceThe SwapchainSource which will be used as the target of rendering operations. This is a window-system-specific object which differs by platform.
widthuintThe initial width of the Swapchain surface.
heightuintThe initial height of the Swapchain surface.
depthFormatPixelFormat?The optional format of the depth target of the Swapchain's Framebuffer. If non-null, this must be a valid depth Texture format. If null, then no depth target will be created.
syncToVerticalBlankboolIndicates whether presentation of the Swapchain will be synchronized to the window system's vertical refresh rate.
colorSrgbboolIndicates whether the color target of the Swapchain will use an sRGB PixelFormat.
Fields
ColorSrgb
Indicates whether the color target of the Swapchain will use an sRGB PixelFormat.
public bool ColorSrgb
Field Value
DepthFormat
The optional format of the depth target of the Swapchain's Framebuffer. If non-null, this must be a valid depth Texture format. If null, then no depth target will be created.
public PixelFormat? DepthFormat
Field Value
Height
The initial height of the Swapchain surface.
public uint Height
Field Value
Source
The SwapchainSource which will be used as the target of rendering operations. This is a window-system-specific object which differs by platform.
public SwapchainSource Source
Field Value
SyncToVerticalBlank
Indicates whether presentation of the Swapchain will be synchronized to the window system's vertical refresh rate.
public bool SyncToVerticalBlank
Field Value
Width
The initial width of the Swapchain surface.
public uint Width
Field Value
Methods
Equals(SwapchainDescription)
Element-wise equality.
public bool Equals(SwapchainDescription other)
Parameters
otherSwapchainDescriptionThe instance to compare to.
Returns
- bool
True if all elements are equal; false otherswise.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.