GPUShaderModule


public final class GPUShaderModule implements AutoCloseable


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

Summary

Public methods

external void
boolean
equals(Object other)
final @NonNull CompilationInfo

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

final external void
@FastNative
getCompilationInfo(
    @NonNull Executor callbackExecutor,
    @NonNull CompilationInfoCallback callback
)

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

final long
int
final external void

Sets a debug label for the shader module.

Public methods

close

Added in 1.0.0-alpha01
public external void close()

equals

public boolean equals(Object other)

getCompilationInfo

public final @NonNull CompilationInfo getCompilationInfo()

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

getCompilationInfo

Added in 1.0.0-alpha01
@FastNative
public final external void getCompilationInfo(
    @NonNull Executor callbackExecutor,
    @NonNull CompilationInfoCallback callback
)

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

getHandle

Added in 1.0.0-alpha01
public final long getHandle()

hashCode

public int hashCode()

setLabel

Added in 1.0.0-alpha01
@FastNative
public final external void setLabel(@NonNull String label)

Sets a debug label for the shader module.

Parameters
@NonNull String label

The label to assign to the shader module.