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

enhancement request - explicitly sized enums in the API #302

Open
jmkinzer opened this issue May 16, 2024 · 0 comments
Open

enhancement request - explicitly sized enums in the API #302

jmkinzer opened this issue May 16, 2024 · 0 comments

Comments

@jmkinzer
Copy link

For enums that are present as fields in API facing structs (e.g. DescriptorType) it would be great to have them provided an explicit size.

The use-case is for managed bindings where one would ideally like to provide a single platform-independent managed binary yet have such structures blittable (at least in runtimes that support this such as .Net).

Note this basically means the enums surfaced in the *Desc structures etc. There is naturally no reason to care about this for the resultant API objects that should naturally be opaque pointers anyway [on the managed side] - so e.g. BufferDesc is transparent, Buffer is opaque.

Would this be possible?

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

No branches or pull requests

1 participant