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

Shader types derive #1460

Merged
merged 4 commits into from
Dec 20, 2020
Merged

Conversation

Eliah-Lakhin
Copy link
Contributor

@Eliah-Lakhin Eliah-Lakhin commented Dec 20, 2020

  • Added an entry to CHANGELOG_VULKANO.md or CHANGELOG_VK_SYS.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes - in this repository
  • Updated documentation to reflect any user-facing changes - PR to the guide that fixes existing documentation invalidated by this PR.
  • Ran cargo fmt on the changes

This PR introduces a new Vulkan Shader Macro types_meta option to opt-in/out of Clone, Copy, Default, PartialEq, Debug and Display trait implementations on each generated Rust struct from the sized shader types, and to apply custom derive traits on them too.

See example in the PR code for details.

This is not a breaking change. The default implementation still persists if the user didn't specify this new option explicitly.

Fixes #1291. Also related to #1329 and #6 .

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.

Generate Default impl for shader uniform blocks
1 participant