Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose naga span location helpers #2752

Merged
merged 2 commits into from
Jun 15, 2022
Merged

Conversation

nical
Copy link
Contributor

@nical nical commented Jun 8, 2022

Description

This exposes the location method from naga errors. The idea is to let the user obtain an Option<naga::SourceLocation> out of CreateShaderModuleError without matching on the internal error types.

This PR also bumps the naga dependency to a more recent revision since the location methods were added recently. Note that the glsl backend recently got bounds check for image loads in gfx-rs/naga#1889, I left the extra parameter disabled in this PR to get the code to build.

Testing

None (the location method has a test in naga).

@nical
Copy link
Contributor Author

nical commented Jun 8, 2022

r? @jimblandy

@nical nical force-pushed the span-location branch 4 times, most recently from bf118b3 to b960853 Compare June 8, 2022 08:48
@nical nical force-pushed the span-location branch 3 times, most recently from 17d7122 to e290f4d Compare June 13, 2022 17:49
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cwfitzgerald cwfitzgerald merged commit 1915370 into gfx-rs:master Jun 15, 2022
@nical nical deleted the span-location branch June 15, 2022 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants