Class VKQueryHeap
Represents a Vulkan queryheap object.
Implements
Inherited Members
Namespace: Evergine.Vulkan
Assembly: Evergine.Vulkan.dll
Syntax
public class VKQueryHeap : QueryHeap, IDisposable
Constructors
VKQueryHeap(VKGraphicsContext, ref QueryHeapDescription)
Initializes a new instance of the VKQueryHeap class.
Declaration
public VKQueryHeap(VKGraphicsContext context, ref QueryHeapDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| VKGraphicsContext | context | The graphics context. |
| QueryHeapDescription | description | The queryheap description. |
Fields
nativeQueryHeap
The vulkan native object.
Declaration
public VkQueryPool nativeQueryHeap
Field Value
| Type | Description |
|---|---|
| VkQueryPool |
Properties
NativePointer
Gets the native pointer.
Declaration
public override IntPtr NativePointer { get; }
Property Value
| Type | Description |
|---|---|
| IntPtr |
Overrides
Methods
Dispose()
Dispose this instance.
Declaration
public override void Dispose()
Overrides
ReadData(uint, uint, ulong[])
Extract 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 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. |
Overrides
Remarks
If the result is false, the results will conttains the latest available results.