The-Forge icon indicating copy to clipboard operation
The-Forge copied to clipboard

enhancement request - explicitly sized enums in the API

Open jmkinzer opened this issue 1 year ago • 0 comments

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?

jmkinzer avatar May 16 '24 01:05 jmkinzer