Allow bit_set as type of bit_field's field #6128
LeonardoTemperanza
started this conversation in
Ideas/Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There are situations where one would want to do this:
But this is currently not allowed, as "The type of a bit_field's field must be an integer, enum, or boolean".
One such place where this pattern is used is in the Vulkan bindings:
Since it's currently not possible to include a bit_set in a bit_field, the bindings generator resorts to using the enum variant, resulting in rather unintuitive behavior since usage code needs to cast from
GeometryInstanceFlagsKHRtoGeometryInstanceFlagKHR.Beta Was this translation helpful? Give feedback.
All reactions