GPUQuerySet


public final class GPUQuerySet implements AutoCloseable


A set of GPU query objects used to record performance or visibility information.

Summary

Public methods

external void
final int
final external void

Immediately destroys the query set.

boolean
equals(Object other)
final external int

Gets the total number of queries in the set.

final long
final external int

Gets the type of query this set records (e.g., occlusion, timestamp).

int
final external void

Sets a debug label for the query set.

final int

Public methods

close

Added in 1.0.0-alpha01
public external void close()

count

Added in 1.0.0-alpha01
public final int count()

destroy

Added in 1.0.0-alpha01
@FastNative
public final external void destroy()

Immediately destroys the query set.

equals

public boolean equals(Object other)

getCount

Added in 1.0.0-alpha01
@FastNative
public final external int getCount()

Gets the total number of queries in the set.

Returns
int

The number of queries.

getHandle

Added in 1.0.0-alpha01
public final long getHandle()

getType

Added in 1.0.0-alpha01
@FastNative
public final external int getType()

Gets the type of query this set records (e.g., occlusion, timestamp).

Returns
int

The type of the queries in the set.

hashCode

public int hashCode()

setLabel

Added in 1.0.0-alpha01
@FastNative
public final external void setLabel(@NonNull String label)

Sets a debug label for the query set.

Parameters
@NonNull String label

The label to assign to the query set.

type

Added in 1.0.0-alpha01
public final int type()