Skip to content

enhancement request - explicitly sized enums in the API #302

Open
@jmkinzer

Description

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?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions