mono / VulkanSharp

Open source .NET binding for the Vulkan API
MIT License
537 stars 61 forks source link

Make Handle property public accessible #59

Closed realvictorprm closed 6 years ago

realvictorprm commented 7 years ago

Description:

I cannot access the handles of the classes without using hacks (reflection. This approach is not considerable for public libraries.

Why:

The access to the handle is needed to support external window libraries like GLFW which make cross-platform surface creation very easy.

How to fix:

Fixing this would require to making the Handle property of IMarshalling public in the various classes.

PS: The Handle property from IMarshalling itself is already public however it is not generated as public in the classes.

realvictorprm commented 7 years ago

See the pull request #60 Simple change, heavy impact for my binding-library GLFW3.NET.