GPUQuerySet


class GPUQuerySet : AutoCloseable


A set of queries for occlusion or timestamp measurements.

Summary

Public functions

open external Unit

Decrements the reference count of the object and frees resources when the count reaches zero.

external Unit

Destroys the query set and releases its resources.

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

Gets the number of queries in the set.

external Int

Gets the type of queries in the set.

open Int
external Unit

Sets a human-readable label for debugging.

Public properties

Int
Long
Int

Public functions

close

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

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

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

Destroys the query set and releases its resources.

equals

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

getCount

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

Gets the number of queries in the set.

Returns
Int

The query count.

getType

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

Gets the type of queries in the set.

Returns
Int

The query type.

hashCode

open fun hashCode(): Int

setLabel

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

Sets a human-readable label for debugging.

Parameters
label: String

The label string.

Public properties

count

Added in 1.0.0-alpha04
val countInt

handle

Added in 1.0.0-alpha04
val handleLong

type

Added in 1.0.0-alpha04
val typeInt