So i've spent the last few days making more D feeling bindings for vulkan, based off Satoshi's because going strait from the spec was a PITA and very inconsistent, and they're almost done.

I would like to request some feedback on the code itself as well as the generated code and general feel of the interface for a an article/blog post on meta-programming and text processing in D. (I know I should replace most of those c-style for loops with join(er),but some of the ones dealing with arrays are quite complicated, and I really ought to factor out a lot of code). Also I just realised that all the extension functions will have to be called through obtained function pointers.

I think i've covered most of the functions but if there are any that I have missed please tell me.

Many thanks to Adam and others for answering my questions so one more. Is it possible to get Fields/Parameters to return aliased types? Because currently all the flags are uints not e.g. ImageCreateFlags.(This would enable the removal of a very large amount of hackery)

Code: http://dpaste.dzfl.pl/3146cdf9d382
outputted code http://dpaste.dzfl.pl/811796605755
Satoshi's bindings: https://github.com/Rikarin/VulkanizeD/blob/master/Vulkan.d

Nic




  • D Vulkan API Nicholas Wilson via Digitalmars-d

Reply via email to