Wraps a compiled WGSL shader module with its label.
The underlying GPUShaderModule has no explicit destroy step; it is released when this object and any pipelines referencing it are dropped.
Compiles the given WGSL source into a GPU shader module.
The WebGPU device used to compile the module.
WGSL source code.
Debug label attached to the module.
Readonly
Wraps a compiled WGSL shader module with its label.
The underlying GPUShaderModule has no explicit destroy step; it is released when this object and any pipelines referencing it are dropped.