Search Results for

    Show / Hide Table of Contents

    Class WGPUFrameBuffer

    This class represents a native FrameBuffer object on WebGPU.

    Inheritance
    object
    FrameBuffer
    WGPUFrameBuffer
    Implements
    ILoadable
    IDependencyObject
    Inherited Members
    FrameBuffer.Id
    FrameBuffer.ReaderVersion
    FrameBuffer.Invalidated
    FrameBuffer.Dependencies
    FrameBuffer.Disposed
    FrameBuffer.requireFlipProjection
    FrameBuffer.Width
    FrameBuffer.Height
    FrameBuffer.ArraySize
    FrameBuffer.SampleCount
    FrameBuffer.RequireFlipProjection
    FrameBuffer.ColorTargets
    FrameBuffer.DepthStencilTarget
    FrameBuffer.OutputDescription
    FrameBuffer.IntermediateBufferAssociated
    FrameBuffer.disposeAttachments
    FrameBuffer.Dispose()
    FrameBuffer.Dispose(bool)
    FrameBuffer.Invalidate(ILoadable)
    FrameBuffer.ReleaseUnusedMemory()
    Namespace: Evergine.WebGPU
    Assembly: Evergine.WebGPU.dll
    Syntax
    public class WGPUFrameBuffer : FrameBuffer, ILoadable, IDependencyObject

    Constructors

    WGPUFrameBuffer(WGPUGraphicsContext, FrameBufferAttachment?, FrameBufferAttachment[], bool)

    Initializes a new instance of the WGPUFrameBuffer class.

    Declaration
    public WGPUFrameBuffer(WGPUGraphicsContext context, FrameBufferAttachment? depthTarget, FrameBufferAttachment[] colorTargets, bool disposeAttachments)
    Parameters
    Type Name Description
    WGPUGraphicsContext context

    The graphics context.

    FrameBufferAttachment? depthTarget

    The depth texture which must have been created with DepthStencil flag.

    FrameBufferAttachment[] colorTargets

    The array of color textures, all of which must have been created with RenderTarget flags.

    bool disposeAttachments

    When this framebuffer is disposed, dispose the attachment textures too.

    Fields

    ColorTargetTextures

    The array of color target textures.

    Declaration
    public WGPUTexture[] ColorTargetTextures
    Field Value
    Type Description
    WGPUTexture[]

    DepthTargetTexture

    The depthtarget texture.

    Declaration
    public WGPUTexture DepthTargetTexture
    Field Value
    Type Description
    WGPUTexture

    Properties

    Name

    Gets or sets a string identifying this instance. It can be used in graphics debuggers tools.

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

    Methods

    Destroy()

    Destroy framebuffer resources.

    Declaration
    protected override void Destroy()
    Overrides
    FrameBuffer.Destroy()

    Implements

    ILoadable
    IDependencyObject

    Extension Methods

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