GPUQuerySet
public final class GPUQuerySet implements AutoCloseable
A set of queries for occlusion or timestamp measurements.
Summary
Public methods |
|
|---|---|
external void |
close()Decrements the reference count of the object and frees resources when the count reaches zero. |
final int |
count() |
final external void |
Destroys the query set and releases its resources. |
boolean |
|
final external int |
Gets the number of queries in the set. |
final long |
|
final external int |
Gets the type of queries in the set. |
int |
hashCode() |
final external void |
@FastNativeSets a human-readable label for debugging. |
final int |
type() |
Public methods
close
public external void close()
Decrements the reference count of the object and frees resources when the count reaches zero.
This is the standard way to manage object lifetimes and should be used in use blocks. After calling this, the object is no longer usable.
destroy
@FastNative
public final external void destroy()
Destroys the query set and releases its resources.
getCount
@FastNative
public final external int getCount()
Gets the number of queries in the set.
| Returns | |
|---|---|
int |
The query count. |
getType
@FastNative
public final external int getType()
Gets the type of queries in the set.
| Returns | |
|---|---|
int |
The query type. |
setLabel
@FastNative
public final external void setLabel(@NonNull String label)
Sets a human-readable label for debugging.