anyone working on a free pascal version ?
anyone working on a free pascal version ?
I hope so, though I guess it will take a while until header translations appear.
If anyone intends to make Pascal headers, it's worth mentioning that it might be easier to write a parser for their API Registry which is a XML and can be found here - https://github.com/KhronosGroup/Vulk...rc/spec/vk.xml (which would parse the xml and render a pascal header file), instead of manually translating the C headers.
I'll port the Vulkan headers to pascal on the weekend, because primary for my own usage.
That would be cool, man
Earlier today I too tried to make translations. I passed the headers through the GCC preprocessor and then through h2pas. With various hand modifications they succeeded to compile in Free Pascal, but the preprocessor has stripped the comments.
But it turned out that both of my video cards doesn't support Vulkan so I won't be able to test them.. until I get a new one. So this puts end to my attempts for now.
Anyway I have attached the files which I managed to produce, in case they make use for anyone
Last edited by Anton; 19-02-2016 at 09:15 PM.
Where can I find information about which graphics cards do support Vulkan?
The wikipedia page lists what drivers/platforms and what hardware is supported.
Existence is pain
It seems that I do won a graphics card capable of running Vulkan. But in order to do this I need to install beta version of drivers which does not have support for DirectX so they would probably break just about everything else.
Therefore I'm deciding whether I should wait a bit for official drivers to came out by which time a Pascal headers might also be done already. Or should I go and install a secondary OS as dual bot to test this out right away.
Any way during my research about Vulkan I ran into some very interesting information. one of the authors of the original C++ based examples is PGD member Sascha Willems
So BeRo I think it would be very beneficial if you two join forces for making of Pascal based headers for Vulkan.
Found this one, it's a good beginning:
https://github.com/MaksymTymkovych/Delphi-Vulkan
Sometimes I secretly divide by zero! - Albert Einstein
The current state of my vkxml2pas translator tool including output vulkan.pas: https://github.com/BeRo1985/pasvulkan/tree/master/src
It's so far complete, except the Vulkan library loading part, where I'm working still on it in a vk.xml future-proof compliant way, due to the extensions and so on.
Edit: Now it generates real enums.
Last edited by BeRo; 22-02-2016 at 11:49 PM.
Bookmarks