Class VKQueryHeap
Represents a Vulkan query heap object.
Inherited Members
Namespace: Evergine.Vulkan
Assembly: Evergine.Vulkan.dll
Syntax
public class VKQueryHeap : QueryHeap
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 query heap 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 nint NativePointer { get; }
Property Value
Type | Description |
---|---|
nint |
Overrides
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public override void Dispose()
Overrides
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
Remarks
If the result is false, the results will contain the latest available results.