GPUShaderModule


class GPUShaderModule : AutoCloseable


A compiled shader module.

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?)
suspend GPUCompilationInfo

Asynchronously retrieves compilation information for the shader module.

external Unit
@FastNative
getCompilationInfo(
    callbackExecutor: Executor,
    callback: GPURequestCallback<GPUCompilationInfo>
)

Asynchronously retrieves compilation information for the shader module.

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

getCompilationInfo

suspend fun getCompilationInfo(): GPUCompilationInfo

Asynchronously retrieves compilation information for the shader module.

getCompilationInfo

Added in 1.0.0-alpha04
@FastNative
external fun getCompilationInfo(
    callbackExecutor: Executor,
    callback: GPURequestCallback<GPUCompilationInfo>
): Unit

Asynchronously retrieves compilation information for the shader module.

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