class GPUShaderModule
implements GPUObjectBase
Represents a compiled shader module that can be used to create graphics or compute pipelines.
Examples #
#
// Create a shader module using WGSL (WebGPU Shading Language)
const shaderModule = device.createShaderModule({
label: "My Shader",
code: `
Properties #
Methods #
#getCompilationInfo(): Promise<GPUCompilationInfo>
Returns compilation messages for this shader module, which can include errors, warnings and info messages.