Class QueryHeap
This class represents a query heap resource.
Inheritance
QueryHeap
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public abstract class QueryHeap : GraphicsResource
Constructors
QueryHeap(GraphicsContext, ref QueryHeapDescription)
Initializes a new instance of the QueryHeap class.
Declaration
protected QueryHeap(GraphicsContext context, ref QueryHeapDescription description)
Parameters
Type | Name | Description |
---|---|---|
GraphicsContext | context | The graphics context. |
QueryHeapDescription | description | The query heap description. |
Fields
Description
Gets the query heap description.
Declaration
public readonly QueryHeapDescription Description
Field Value
Type | Description |
---|---|
QueryHeapDescription |
Methods
ReadData(uint, uint, ulong[])
Extracts data from one or more queries.
Declaration
public abstract 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. |
Remarks
If the result is false, the results will contain the latest available results.