GPUShaderModule


class GPUShaderModule : AutoCloseable


Represents the compiled code for one or more shader stages (e.g., WGSL or SPIR-V).

Summary

Public functions

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

Asynchronously requests detailed information about the shader module's compilation.

external Unit
@FastNative
getCompilationInfo(
    callbackExecutor: Executor,
    callback: CompilationInfoCallback
)

Asynchronously requests detailed information about the shader module's compilation.

open Int
external Unit

Sets a debug label for the shader module.

Public properties

Long

Public functions

close

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

equals

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

getCompilationInfo

suspend fun getCompilationInfo(): CompilationInfo

Asynchronously requests detailed information about the shader module's compilation.

getCompilationInfo

Added in 1.0.0-alpha01
@FastNative
external fun getCompilationInfo(
    callbackExecutor: Executor,
    callback: CompilationInfoCallback
): Unit

Asynchronously requests detailed information about the shader module's compilation.

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 shader module.

Parameters
label: String

The label to assign to the shader module.

Public properties

handle

Added in 1.0.0-alpha01
val handleLong