GPUTextureView


class GPUTextureView : AutoCloseable


A view into a texture, defining a specific sub-resource or reinterpretation of the texture's data.

Summary

Public functions

open external Unit

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

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

Sets a human-readable label for debugging.

Public properties

Long

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.

equals

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

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

handle

Added in 1.0.0-alpha04
val handleLong