-
Notifications
You must be signed in to change notification settings - Fork 963
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't panic if naga parsing of shader source fails (#5034)
* naga: glsl parser should return singular ParseError similar to wgsl * wgpu: treat glsl the same as wgsl when creating ShaderModule * naga: update glsl parser tests to use new ParseError type * naga: glsl ParseError errors field should be public * wgpu-core: add 'glsl' feature * fix some minor bugs in glsl parse error refactor * naga/wgpu/wgpu-core: improve spirv parse error handling * wgpu-core: feature gate use of glsl and spv naga modules * wgpu: enable wgpu-core glsl and spirv features when appropriate * obey clippy * naga: derive Clone in Type * naga: don't feature gate Clone derivation for Type * obey cargo fmt * wgpu-core: use bytemuck instead of zerocopy * wgpu-core: apply suggested edit * wgpu-core: no need to borrow spirv code * Update wgpu/src/backend/wgpu_core.rs Co-authored-by: Alphyr <[email protected]> --------- Co-authored-by: Alphyr <[email protected]>
- Loading branch information
Showing
14 changed files
with
221 additions
and
80 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.