Class QueryHeap
This class represent a queryheap resource.
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 queryheap description. |
Fields
Description
Gets the queryheap description.
Declaration
public readonly QueryHeapDescription Description
Field Value
| Type | Description |
|---|---|
| QueryHeapDescription |
Methods
ReadData(uint, uint, ulong[])
Extract 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 fist query to read. |
| uint | count | Specifies the number of queries to read. |
| ulong[] | results | ulong buffer with the extracted queries data. |
Returns
| Type | Description |
|---|---|
| bool | Return true if all queries to read are available and false if not. |
Remarks
If the result is false, the results will conttains the latest available results.