Struct SwapChainDescription
Represents the requiered information to create a new swapchain depending of the platform.
Implements
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public struct SwapChainDescription : IEquatable<SwapChainDescription>
  Fields
ColorTargetFlags
The color texture flags for binding to pipeline stages. The flags ca be combined by 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 ca be combined by a logical OR.
Declaration
public TextureFlags DepthStencilTargetFlags
  Field Value
| Type | Description | 
|---|---|
| TextureFlags | 
DepthStencilTargetFormat
The pixel format of the depthstencil target.
Declaration
public PixelFormat DepthStencilTargetFormat
  Field Value
| Type | Description | 
|---|---|
| PixelFormat | 
Height
The swapchain buffers height.
Declaration
public uint Height
  Field Value
| Type | Description | 
|---|---|
| uint | 
IsWindowed
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 sampler count of this swapchain.
Declaration
public TextureSampleCount SampleCount
  Field Value
| Type | Description | 
|---|---|
| TextureSampleCount | 
SurfaceInfo
Surface information.
Declaration
public SurfaceInfo SurfaceInfo
  Field Value
| Type | Description | 
|---|---|
| SurfaceInfo | 
Width
The swapchain buffers width.
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 | 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 a hash table.  | 
      
Overrides
Operators
operator ==(SwapChainDescription, SwapChainDescription)
Implements the operator ==.
Declaration
public static bool operator ==(SwapChainDescription value1, SwapChainDescription value2)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SwapChainDescription | value1 | The value1.  | 
      
| SwapChainDescription | value2 | The value2.  | 
      
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 value1.  | 
      
| SwapChainDescription | value2 | The value2.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | The result of the operator.  |