![]() |
Vireo
0.0
Vireo 3D Rendering Hardware Interface
|
A GPU timestamp query pool, used for GPU-side performance profiling.
Inheritance diagram for QueryPool:Public Member Functions | |
| auto | getCapacity () const |
| auto | getTimestampPeriodMs () const |
| virtual std::vector< uint64_t > | getResults (uint32_t firstQuery, uint32_t queryCount) const = 0 |
| virtual | ~QueryPool () = default |
| QueryPool (const QueryPool &) = delete | |
| QueryPool & | operator= (const QueryPool &) = delete |
Protected Member Functions | |
| QueryPool (const uint32_t capacity, const double timestampPeriodMs) | |
Protected Attributes | |
| uint32_t | capacity |
| double | timestampPeriodMs |
|
virtualdefault |
|
delete |
|
inlineprotected |
|
inline |
Returns the maximum number of timestamp slots in this pool.
|
pure virtual |
Reads back resolved timestamp values from the host-visible buffer.
| firstQuery | Index of the first query slot to read. |
| queryCount | Number of consecutive slots to read. |
|
inline |
Returns the period (in milliseconds) of one GPU clock tick. Multiply a raw tick difference by this value to get a duration in ms.
|
delete |
|
protected |
|
protected |