Query
The Query class provides functionality for querying various types of data, such as time, clock, sample counts, and statistics, in a platform-specific manner. It allows for creating and managing different types of queries, checking the state of the query, and retrieving the results of the query.
#include <platform/TellusimQuery.h>
Constructors
Query()
Methods
Query platform.
Platform getPlatform() const
const char *getPlatformName() const
Query device index.
uint32_t getIndex() const
Clear query.
void clear()
Check query.
bool isCreated() const
bool isAvailable() const
bool isBegan() const
bool isEnded() const
Create query.
bool create(Type type)
Query type.
Type getType() const
static const char *getTypeName(Type type)
const char *getTypeName() const
size_t getTypeSize() const
bool isTime() const
bool isClock() const
bool isSamples() const
bool isSamples1() const
bool isStatistics() const
bool isTimeType() const
bool isSamplesType() const
Get query data.
bool get(void *dest, size_t size, bool wait = true) const
uint64_t getTime(bool wait = true, bool *status = nullptr) const
uint32_t getSamples(bool wait = true, bool *status = nullptr) const
Statistics getStatistics(bool wait = true, bool *status = nullptr) const
Enums
Type
Query types.
Name | Value |
---|---|
TypeUnknown | 0 |
TypeTime | 1 |
TypeClock | 2 |
TypeSamples | 3 |
TypeSamples1 | 4 |
TypeStatistics | 5 |
NumTypes | 6 |
Structs
Statistics
Statistics query.
Variables
Type | Name |
---|---|
uint64_t | num_vertices |
uint64_t | num_primitives |
uint64_t | vertex_invocations |
uint64_t | control_invocations |
uint64_t | evaluate_invocations |
uint64_t | geometry_invocations |
uint64_t | geometry_primitives |
uint64_t | fragment_invocations |
uint64_t | compute_invocations |
uint64_t | clipping_invocations |
uint64_t | clipping_primitives |