GPUShaderModule
public final class GPUShaderModule implements AutoCloseable
A compiled shader module.
Summary
Public methods
close
Added in 1.0.0-alpha05
public external void close()
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.
getCompilationInfo
public final @NonNull GPUCompilationInfo getCompilationInfo()
Asynchronously retrieves compilation information for the shader module.
getCompilationInfo
Added in 1.0.0-alpha05
@FastNative
public final external void getCompilationInfo(
@NonNull Executor callbackExecutor,
@NonNull GPURequestCallback<@NonNull GPUCompilationInfo> callback
)
Asynchronously retrieves compilation information for the shader module.
setLabel
Added in 1.0.0-alpha05
@FastNative
public final external void setLabel(@NonNull String label)
Sets a human-readable label for debugging.
