Class DX12SwapChain
This class represents a native swapchain object on DirectX12.
Implements
Inherited Members
Namespace: Evergine.DirectX12
Assembly: Evergine.DirectX12.dll
Syntax
public class DX12SwapChain : SwapChain, IDisposable
Constructors
DX12SwapChain(GraphicsContext, SwapChainDescription)
Initializes a new instance of the DX12Swap
Declaration
public DX12SwapChain(GraphicsContext context, SwapChainDescription description)
Parameters
Type | Name | Description |
---|---|---|
Graphics |
context | Graphics Context. |
Swap |
description | SwapChain description. |
Fields
SwapChainBufferCount
A default number of buffer in the swapchain.
Declaration
public const int SwapChainBufferCount = 3
Field Value
Type | Description |
---|---|
int |
Properties
CurrentBackBufferIndex
Gets or sets the active backbuffer index.
Declaration
public int CurrentBackBufferIndex { get; set; }
Property Value
Type | Description |
---|---|
int |
Name
Gets or sets a string identifying this instance. Can be used in graphics debuggers tools.
Declaration
public override string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Overrides
NativeSwapChainPointer
Gets the native SwapChain pointer. Default value is returned if the platform does not support it.
Declaration
public override IntPtr NativeSwapChainPointer { get; }
Property Value
Type | Description |
---|---|
Int |
Overrides
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public override void Dispose()
Overrides
GetCurrentFramebufferTexture()
Gets the current Framebuffer Texture.
Declaration
public override Texture GetCurrentFramebufferTexture()
Returns
Type | Description |
---|---|
Texture | Framebuffer texture. |
Overrides
Present()
Presents a rendered image to the user.
Declaration
public override void Present()
Overrides
RefreshSurfaceInfo(SurfaceInfo)
The swapchain surface info has changed.
Declaration
public override void RefreshSurfaceInfo(SurfaceInfo surfaceInfo)
Parameters
Type | Name | Description |
---|---|---|
Surface |
surfaceInfo | The surface info. |
Overrides
ResizeSwapChain(uint, uint)
Resize SwapChain.
Declaration
public override void ResizeSwapChain(uint width, uint height)