jpbruyere / vk.net

Vulkan binding for .net
MIT License
32 stars 3 forks source link

Enum arrays are not blittable on windows. #9

Closed jpbruyere closed 4 years ago

jpbruyere commented 4 years ago

Running vke on windows cause Unhandled exception when trying to allocate a GCHandle for enum arrays. This should be solve in future version of ms .net runtimes. But in current development version of ms runtime (5.0.0-dev), enum isn't already blittale.

jpbruyere commented 4 years ago

I've changed the backing type of Enums in struct to int/uint and provided a property for convenience.