Search Results for

    Show / Hide Table of Contents

    Class WGPUSwapChain

    This class represents a native swapchain object on WebGPU.

    Inheritance
    object
    SwapChain
    WGPUSwapChain
    Inherited Members
    SwapChain.disposed
    SwapChain.GraphicsContext
    SwapChain.NativeSwapChainPointer
    SwapChain.SwapChainDescription
    SwapChain.FrameBuffer
    Namespace: Evergine.WebGPU
    Assembly: Evergine.WebGPU.dll
    Syntax
    public class WGPUSwapChain : SwapChain

    Constructors

    WGPUSwapChain(WGPUGraphicsContext, SwapChainDescription)

    Initializes a new instance of the WGPUSwapChain class.

    Declaration
    public WGPUSwapChain(WGPUGraphicsContext context, SwapChainDescription description)
    Parameters
    Type Name Description
    WGPUGraphicsContext context

    Graphics Context.

    SwapChainDescription description

    SwapChain description.

    Properties

    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

    VerticalSync

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

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

    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()

    InitFrame()

    This method is invoked when the frame starts.

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

    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