Source of a shader module.
The source will be parsed and validated.
Any necessary shader translation (e.g. from WGSL to SPIR-V or vice versa) will be done internally by wgpu.
This type is unique to the Rust API of
wgpu. In the WebGPU specification,
only WGSL source code strings are accepted.
This enum is marked as non-exhaustive
Auto Trait Implementations§
Returns the argument unchanged.