Search Results for

    Show / Hide Table of Contents

    Class VKSwapChain

    This class represents a native swapchain object on Vulkan.

    Inheritance
    object
    SwapChain
    VKSwapChain
    Implements
    IDisposable
    Inherited Members
    SwapChain.disposed
    SwapChain.GraphicsContext
    SwapChain.NativeSwapChainPointer
    SwapChain.SwapChainDescription
    SwapChain.FrameBuffer
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Vulkan
    Assembly: Evergine.Vulkan.dll
    Syntax
    public class VKSwapChain : SwapChain, IDisposable

    Constructors

    VKSwapChain(GraphicsContext, SwapChainDescription)

    Initializes a new instance of the VKSwapChain class.

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

    Graphics Context.

    SwapChainDescription description

    SwapChain description.

    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
    SwapChain.Name

    VerticalSync

    Gets or sets a value indicating whether vertical synchronization is enable or not.

    Declaration
    public override bool VerticalSync { get; set; }
    Property Value
    Type Description
    bool
    Overrides
    SwapChain.VerticalSync

    Methods

    ANativeWindow_fromSurface(IntPtr, IntPtr)

    Create a ANativeWindows surface.

    Declaration
    public static extern IntPtr ANativeWindow_fromSurface(IntPtr jniEnv, IntPtr surface)
    Parameters
    Type Name Description
    IntPtr jniEnv

    The jni environment pointer.

    IntPtr surface

    The native surface pointer.

    Returns
    Type Description
    IntPtr

    A new ANativeWindows surface.

    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 info has changed.

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

    The surface info.

    Overrides
    SwapChain.RefreshSurfaceInfo(SurfaceInfo)

    ResizeSwapChain(uint, uint)

    Resize SwapChain.

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

    New width.

    uint height

    New height.

    Overrides
    SwapChain.ResizeSwapChain(uint, uint)

    Implements

    IDisposable

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX