Search Results for

    Show / Hide Table of Contents

    Class DX12SwapChain

    This class represents a native swap chain object in DirectX 12.

    Inheritance
    object
    SwapChain
    DX12SwapChain
    Inherited Members
    SwapChain.disposed
    SwapChain.GraphicsContext
    SwapChain.SwapChainDescription
    SwapChain.FrameBuffer
    SwapChain.VerticalSync
    SwapChain.InitFrame()
    Namespace: Evergine.DirectX12
    Assembly: Evergine.DirectX12.dll
    Syntax
    public class DX12SwapChain : SwapChain

    Constructors

    DX12SwapChain(GraphicsContext, SwapChainDescription)

    Initializes a new instance of the DX12SwapChain class.

    Declaration
    public DX12SwapChain(GraphicsContext context, SwapChainDescription description)
    Parameters
    Type Name Description
    GraphicsContext context

    Graphics context.

    SwapChainDescription description

    SwapChain description.

    Fields

    SwapChainBufferCount

    The default number of buffers in the swapchain.

    Declaration
    public const int SwapChainBufferCount = 3
    Field Value
    Type Description
    int

    Properties

    CurrentBackBufferIndex

    Gets or sets the active back buffer 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 debugging tools.

    Declaration
    public override string Name { get; set; }
    Property Value
    Type Description
    string
    Overrides
    SwapChain.Name

    NativeSwapChainPointer

    Gets the native SwapChain pointer. The default value is returned if the platform does not support it.

    Declaration
    public override nint NativeSwapChainPointer { get; }
    Property Value
    Type Description
    nint
    Overrides
    SwapChain.NativeSwapChainPointer

    Methods

    Dispose()

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

    Declaration
    public override void Dispose()
    Overrides
    SwapChain.Dispose()

    GetCurrentFramebufferTexture()

    Gets the current framebuffer texture.

    Declaration
    public override Texture GetCurrentFramebufferTexture()
    Returns
    Type Description
    Texture

    Framebuffer texture.

    Overrides
    SwapChain.GetCurrentFramebufferTexture()

    Present()

    Presents a rendered image to the user.

    Declaration
    public override void Present()
    Overrides
    SwapChain.Present()

    RefreshSurfaceInfo(SurfaceInfo)

    The swapchain surface information has changed.

    Declaration
    public override void RefreshSurfaceInfo(SurfaceInfo surfaceInfo)
    Parameters
    Type Name Description
    SurfaceInfo surfaceInfo

    The surface information.

    Overrides
    SwapChain.RefreshSurfaceInfo(SurfaceInfo)

    ResizeSwapChain(uint, uint)

    Resizes the SwapChain.

    Declaration
    public override void ResizeSwapChain(uint width, uint height)
    Parameters
    Type Name Description
    uint width

    The new width.

    uint height

    The new height.

    Overrides
    SwapChain.ResizeSwapChain(uint, uint)

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX