-
Notifications
You must be signed in to change notification settings - Fork 192
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
Pass constant size arrays by reference #191
Merged
Merged
Conversation
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
Ralith
approved these changes
Mar 8, 2019
MaikKlein
approved these changes
Mar 8, 2019
Interesting, thanks for the catch! I also leave here the current implementation for it in radv. Indeed it is just used as a pointer.
|
bors r+ |
bors bot
added a commit
that referenced
this pull request
Mar 8, 2019
191: Pass constant size arrays by reference r=MaikKlein a=kvark Note: this is a breaking change! Some related reading: https://lkml.org/lkml/2015/9/3/428 This has been plaguing WebRender on gfx-rs port running Windows/Vulkan. Co-authored-by: Dzmitry Malyshau <[email protected]>
There are currently a few breaking changes in place, I'll push a new version after #183 is merged, which should be today. (hopefully) |
Great, thanks!
… On Mar 8, 2019, at 10:31, Maik Klein ***@***.***> wrote:
There are currently a few breaking changes in place, I'll push a new version after #183 is merged, which should be today. (hopefully)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
4 tasks
bors bot
added a commit
to gfx-rs/gfx
that referenced
this pull request
Mar 12, 2019
2693: [vk] Pass blend constant value by reference r=kvark a=zakorgy The related conversation is here: ash-rs/ash#191 Also updates ash version PR checklist: - [x] `make` succeeds (on *nix) - [x] `make reftests` succeeds - [x] tested examples with the following backends: GL, Vulkan, Metal, DX12, DX11 - [ ] `rustfmt` run on changed code <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/gfx-rs/gfx/2693) <!-- Reviewable:end --> Co-authored-by: Zakor Gyula <[email protected]>
aloucks
added a commit
to aloucks/ash
that referenced
this pull request
Mar 13, 2019
All instances of HashMap and HashSet have been replaced with BTreeMap and BTreeSet. Repeated generation of vk.rs results in the same output given the same vk.xml and generator. Note that this commit still contains the struct generation bug introduced in PR ash-rs#191. All structs with fixed sized arrays are currently generated as slices.
bors bot
added a commit
that referenced
this pull request
Mar 15, 2019
193: Fix struct generation with constant size arrays r=MaikKlein a=aloucks PR #191 introduced a bug into the generator where constant sized array struct fields were generated as slices. This PR adds a flag to `type_tokens` that will revert that behavior while still generating FFI function signatures with pointers instead of fixed sized arrays (e.g. for `set_blend_constants`). In addition, all instances of `HashMap` and `HashSet` have been replaced with `BTreeMap` and `BTreeSet`, which makes the generation of `vk.rs` idempotent for the same `vk.xml` input. This should obviate the need for #130 and make it much easier to see how changes to the generator or `vk.xml` affect the generated output. Co-authored-by: Aaron Loucks <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note: this is a breaking change!
Some related reading: https://lkml.org/lkml/2015/9/3/428
This has been plaguing WebRender on gfx-rs port running Windows/Vulkan.