Optional
compilationA list of GPUShaderModuleCompilationHints. Any hint provided by an application should contain information about one entry point of a pipeline that will eventually be created from the entry point. Implementations should use any information present in the GPUShaderModuleCompilationHint to perform as much compilation as is possible within createShaderModule. Aside from type-checking, these hints are not validated in any way.
Optional
labelThe initial value of GPUObjectBase#labe | PUObjectBase.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 https://www.w3.org/TR/webgpu/SourceMap. WGSL names (identifiers) in source maps follow the rules defined in WGSL identifier comparison.
Generated using TypeDoc
The WGSL source code for the shader module.