Interface GPUShaderModuleDescriptor
code: string;
compilationHints?: GPUShaderModuleCompilationHint[];
label?: string;
sourceMap?: any;
}
Hierarchy
- GPUObjectDescriptorBase
- GPUShaderModuleDescriptor (view full)
Index
Properties
Properties
code
Optional
compilationHints
A 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 GPUDevice#createShaderModule. Aside from type-checking, these hints are not validated in any way.
Optional
label
The initial value of GPUObjectBase.label.
Optional
sourceMap
If defined, may be interpreted in the [[!SourceMap]] v3 format. If an implementation supports this option but is unable to process the provided value, it should show a developer-visible warning but must not produce any application-observable error. Note: Source map support is optional, but serves as a semi-standardized way to support dev-tool integration such as source-language debugging. WGSL names (identifiers) in source maps follow the rules defined in WGSL identifier comparison.
The WGSL source code for the shader module.