mono / VulkanSharp

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

Generating bindings for Vulkan 1.0.25 fails #43

Closed himanshugoel2797 closed 8 years ago

himanshugoel2797 commented 8 years ago

I don't know enough about the format used in the vk.xml file, however it seems that generating bindings for the latest revision of the Vulkan spec fails at WriteMemberArray because of being unable to find the 'len' member for a function pointer, specifically for pAcquireTimeoutMilliseconds: https://github.com/KhronosGroup/Vulkan-Docs/blob/1.0/src/spec/vk.xml#L2246

himanshugoel2797 commented 8 years ago

I think this is because pAcquireTimeoutMilliseconds is meant to be (from what I can tell), a const uint32_t* but not an array, however, the Generator is unable to determine that and ends up calling WriteMemberArray.

EDIT: Additionally, some more types need to be added to typesTranslation.

I'm trying to fix as much as I can, will make a PR when done.

radekdoulik commented 8 years ago

It should be now fully fixed by https://github.com/mono/VulkanSharp/commit/ddba19b025184f338160174a05cdad8d12832f90