GPUShaderModule¶
interface GPUShaderModule : GPUObjectBase, AutoCloseable
Properties¶
label¶
A developer-provided label which is used in an implementation-defined way. It can be used by the browser, OS, or other tools to help identify the underlying internal object to the developer. Examples include displaying the label in GPUError messages, console warnings, browser developer tools, and platform debugging utilities.
Functions¶
close¶
expect abstract fun close()
getCompilationInfo¶
abstract suspend fun getCompilationInfo(): Result<GPUCompilationInfo>
Returns any messages generated during the GPUShaderModule’s compilation. The locations, order, and contents of messages are implementation-defined. In particular, messages aren’t necessarily ordered by lineNum.