Struct SwapChainDescription
Represents the required information to create a new swapchain depending on the platform.
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public struct SwapChainDescription
Fields
ColorTargetFlags
The color texture flags for binding to pipeline stages. The flags can be combined using a logical OR.
Declaration
public TextureFlags ColorTargetFlags
Field Value
Type | Description |
---|---|
TextureFlags |
ColorTargetFormat
The pixel format of the color target.
Declaration
public PixelFormat ColorTargetFormat
Field Value
Type | Description |
---|---|
PixelFormat |
DepthStencilTargetFlags
The depth texture flags for binding to pipeline stages. The flags can be combined by a logical OR.
Declaration
public TextureFlags DepthStencilTargetFlags
Field Value
Type | Description |
---|---|
TextureFlags |
DepthStencilTargetFormat
The pixel format of the depth stencil target.
Declaration
public PixelFormat DepthStencilTargetFormat
Field Value
Type | Description |
---|---|
PixelFormat |
Height
The height of the swapchain buffers.
Declaration
public uint Height
Field Value
Type | Description |
---|---|
uint |
IsWindowed
Indicates whether the output is in windowed mode.
Declaration
public bool IsWindowed
Field Value
Type | Description |
---|---|
bool |
RefreshRate
The refresh rate.
Declaration
public uint RefreshRate
Field Value
Type | Description |
---|---|
uint |
SampleCount
The sample count of this swap chain.
Declaration
public TextureSampleCount SampleCount
Field Value
Type | Description |
---|---|
TextureSampleCount |
SurfaceInfo
Surface information.
Declaration
public SurfaceInfo SurfaceInfo
Field Value
Type | Description |
---|---|
SurfaceInfo |
Width
The width of the swapchain buffers.
Declaration
public uint Width
Field Value
Type | Description |
---|---|
uint |
Methods
Equals(SwapChainDescription)
Returns a hash code for this instance.
Declaration
public bool Equals(SwapChainDescription other)
Parameters
Type | Name | Description |
---|---|---|
SwapChainDescription | other | Used to compare. |
Returns
Type | Description |
---|---|
bool | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Equals(object)
Determines whether the specified object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with this instance. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this instance, suitable for use in hashing algorithms and data structures like hash tables. |
Overrides
Operators
operator ==(SwapChainDescription, SwapChainDescription)
Implements the operator ==.
Declaration
public static bool operator ==(SwapChainDescription value1, SwapChainDescription value2)
Parameters
Type | Name | Description |
---|---|---|
SwapChainDescription | value1 | The first value. |
SwapChainDescription | value2 | The second value. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
operator !=(SwapChainDescription, SwapChainDescription)
Implements the operator ==.
Declaration
public static bool operator !=(SwapChainDescription value1, SwapChainDescription value2)
Parameters
Type | Name | Description |
---|---|---|
SwapChainDescription | value1 | The first value. |
SwapChainDescription | value2 | The second value. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |