GPUQuerySet


class GPUQuerySet : AutoCloseable


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

Summary

Public functions

open external Unit
external Unit

Immediately destroys the query set.

open operator Boolean
equals(other: Any?)
external Int

Gets the total number of queries in the set.

external Int

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

open Int
external Unit

Sets a debug label for the query set.

Public properties

Int
Long
Int

Public functions

close

Added in 1.0.0-alpha01
open external fun close(): Unit

destroy

Added in 1.0.0-alpha01
@FastNative
external fun destroy(): Unit

Immediately destroys the query set.

equals

open operator fun equals(other: Any?): Boolean

getCount

Added in 1.0.0-alpha01
@FastNative
external fun getCount(): Int

Gets the total number of queries in the set.

Returns
Int

The number of queries.

getType

Added in 1.0.0-alpha01
@FastNative
external fun getType(): Int

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

Returns
Int

The type of the queries in the set.

hashCode

open fun hashCode(): Int

setLabel

Added in 1.0.0-alpha01
@FastNative
external fun setLabel(label: String): Unit

Sets a debug label for the query set.

Parameters
label: String

The label to assign to the query set.

Public properties

count

Added in 1.0.0-alpha01
val countInt

handle

Added in 1.0.0-alpha01
val handleLong

type

Added in 1.0.0-alpha01
val typeInt