Skip to content

Conversation

@thorjelly
Copy link
Contributor

@thorjelly thorjelly commented Jan 9, 2022

Closes #546

So that vk_bitflags may be used directly in const contexts more ergonomically, similar to bitflags: https://docs.rs/bitflags/1.3.2/bitflags/example_generated/struct.Flags.html

…on, union, and difference const fn methods. Implements #546 in upstream.
@MarijnS95 MarijnS95 changed the title vk_bitflags_wrapped! const fn methods Convert vk_bitflags_wrapped! methods to const fn Jan 11, 2022
@MarijnS95 MarijnS95 merged commit 98192d1 into ash-rs:master Jan 11, 2022
@thorjelly thorjelly deleted the bitflags_const_fn branch January 11, 2022 18:33
MarijnS95 added a commit that referenced this pull request Jan 11, 2022
Nothing special happens when converting to and from these constants, and
its API is found to be more concise yet ever so slightly (0.1s) faster
to compile than having separate `to_raw` and `from_raw` functions for
each, that it makes sense to drop these entirely.  Ash is still on a
nonbreaking contribution streak so these functions are marked
`deprecated` for now and will be removed at the next breaking crate
release.

[1]: #549 (comment)
MarijnS95 added a commit that referenced this pull request Jan 11, 2022
Nothing special happens when converting to and from these constants, and
its API is found to be more concise yet ever so slightly (0.1s) faster
to compile than having separate `to_raw` and `from_raw` functions for
each, that it makes sense to drop these entirely.  Ash is still on a
nonbreaking contribution streak so these functions are marked
`deprecated` for now and will be removed at the next breaking crate
release.

[1]: #549 (comment)
MarijnS95 added a commit that referenced this pull request Jan 11, 2022


And drop the deprecated =/- markdown syntax from our readme: this is
analogous to #/## for a h1/h2 header, instead of defining a title and
(usually smaller font) subtitle or description.
MarijnS95 added a commit that referenced this pull request Jan 17, 2022


And drop the deprecated =/- markdown syntax from our readme: this is
analogous to #/## for a h1/h2 header, instead of defining a title and
(usually smaller font) subtitle or description.
MarijnS95 added a commit that referenced this pull request Jan 17, 2022


And drop the deprecated =/- markdown syntax from our readme: this is
analogous to #/## for a h1/h2 header, instead of defining a title and
(usually smaller font) subtitle or description.
MarijnS95 added a commit that referenced this pull request Jan 17, 2022
Nothing special happens when converting to and from these constants, and
its API is found to be more concise yet ever so slightly (0.1s) faster
to compile than having separate `to_raw` and `from_raw` functions for
each, that it makes sense to drop these entirely.  Ash is still on a
nonbreaking contribution streak so these functions are marked
`deprecated` for now and will be removed at the next breaking crate
release.

[1]: #549 (comment)
MarijnS95 added a commit that referenced this pull request Jan 17, 2022
)

And drop the deprecated =/- markdown syntax from our readme: this is
analogous to #/## for a h1/h2 header, instead of defining a title and
(usually smaller font) subtitle or description.
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.

vk_bitflags_wrapped! should support const better

3 participants