Optional
hintsIf defined maps an entry point name from the shader to a GPUShaderModuleCompilationHint. No validation is performed with any of these GPUShaderModuleCompilationHint. Implementations should use any information present in the GPUShaderModuleCompilationHint to perform as much compilation as is possible within createShaderModule. Entry point names follow the rules defined in WGSL identifier comparison. Note: Supplying information in hints does not have any observable effect, other than performance. Because a single shader module can hold multiple entry points, and multiple pipelines can be created from a single shader module, it can be more performant for an implementation to do as much compilation as possible once in createShaderModule rather than multiple times in the multiple calls to createComputePipeline / createRenderPipeline.
Optional
labelThe initial value of GPUObjectBase#label|GPUObjectBase.label.
Optional
sourceIf defined MAY be interpreted as a source-map-v3 format. Source maps are optional, but serve as a standardized way to support dev-tool integration such as source-language debugging [[SourceMap]]. WGSL names (identifiers) in source maps follow the rules defined in WGSL identifier comparison.
The WGSL source code for the shader module.