Search Results for

    Show / Hide Table of Contents

    Class WGPUQueryHeap

    Represents a WebGPU queryheap object.

    Inheritance
    object
    GraphicsResource
    QueryHeap
    WGPUQueryHeap
    Inherited Members
    QueryHeap.Description
    GraphicsResource.Context
    GraphicsResource.Disposed
    GraphicsResource.Dispose()
    GraphicsResource.Dispose(bool)
    Namespace: Evergine.WebGPU
    Assembly: Evergine.WebGPU.dll
    Syntax
    public class WGPUQueryHeap : QueryHeap

    Constructors

    WGPUQueryHeap(WGPUGraphicsContext, ref QueryHeapDescription)

    Initializes a new instance of the WGPUQueryHeap class.

    Declaration
    public WGPUQueryHeap(WGPUGraphicsContext context, ref QueryHeapDescription description)
    Parameters
    Type Name Description
    WGPUGraphicsContext context

    The graphics context.

    QueryHeapDescription description

    The queryheap description.

    Fields

    NativeQueryHeap

    The WebGPU native object.

    Declaration
    public WGPUQuerySet NativeQueryHeap
    Field Value
    Type Description
    WGPUQuerySet

    Properties

    NativePointer

    Gets the native pointer.

    Declaration
    public override nint NativePointer { get; }
    Property Value
    Type Description
    nint
    Overrides
    GraphicsResource.NativePointer

    Methods

    Destroy()

    Destroy graphics native resources.

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

    ReadData(uint, uint, ulong[])

    Extracts data from one or more queries.

    Declaration
    public override bool ReadData(uint startIndex, uint count, ulong[] results)
    Parameters
    Type Name Description
    uint startIndex

    Specifies the index of the first query to read.

    uint count

    Specifies the number of queries to read.

    ulong[] results

    ulong buffer with the extracted query data.

    Returns
    Type Description
    bool

    Returns true if all queries to read are available; false otherwise.

    Overrides
    QueryHeap.ReadData(uint, uint, ulong[])
    Remarks

    If the result is false, the results will contain the latest available results.

    Extension Methods

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