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

Improve diagnostics for overlapping/conflicting bindings #162

Merged
merged 2 commits into from
Aug 15, 2017

Conversation

tangent-vector
Copy link
Contributor

Closes #38

  • Change overlapping bindings case from error to warning (it is technically allowed in HLSL/GLSL)

  • Make diagnostic messages for these cases include a note to point at the "other" declaration in each case, so that user can more easily isolate the problem

  • Unrelated fix: make sure slangc sets up its diagnostic callback before parsing command-line options so that error messages output during options parsing will be visible

  • Unrelated fix: make sure that formatting for diagnostic messages doesn't print diagnostic ID for notes (all have IDs < 0).

    • Note: eventually I'd like to not print diagnostic IDs at all (I think they are cluttering up our output), but doing that requires touching all the test cases...

Closes shader-slang#38

- Change overlapping bindings case from error to warning (it is *technically* allowed in HLSL/GLSL)

- Make diagnostic messages for these cases include a note to point at the "other" declaration in each case, so that user can more easily isolate the problem

- Unrelated fix: make sure `slangc` sets up its diagnostic callback *before* parsing command-line options so that error messages output during options parsing will be visible

- Unrelated fix: make sure that formatting for diagnostic messages doesn't print diagnostic ID for notes (all have IDs < 0).
  - Note: eventually I'd like to not print diagnostic IDs at all (I think they are cluttering up our output), but doing that requires touching all the test cases...
@tangent-vector-personal tangent-vector-personal merged commit e6abc68 into shader-slang:master Aug 15, 2017
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.

Register re-use between shader stages with different layouts.
2 participants