Odin»Forums
Peter Particle
2 posts
Is anybody tackeling a vulkan loader?
Edited by Peter Particle on Reason: Initial post
Would like to give it a try, without reinventing the wheel, hence the question.
Mārtiņš Možeiko
2203 posts / 1 project
Is anybody tackeling a vulkan loader?
Edited by Mārtiņš Možeiko on
Is there something wrong with official ext_loader.c which is autogenerated from spec?

And isn't it as simple as Type* proc = vkGetInstanceProcAddr(instance, "proc") ? There are no differences like in OpenGL - contexts, and GetProcAddress vs wgl/glx/egl...

Peter Particle
2 posts
Is anybody tackeling a vulkan loader?
Is there something wrong with official ext_loader.c which is autogenerated from spec?

Neither me nor google know anything about an 'official' ext_loader.c, any link?


And isn't it as simple as Type* proc = vkGetInstanceProcAddr(instance, "proc") ?

No, then you just would have the entry point to vulkan magic, but you still need to load all the other function pointer. Besides matching their signature in odin lang you also need to translate all structs/unions, among other tasks.

Mārtiņš Možeiko
2203 posts / 1 project
Is anybody tackeling a vulkan loader?
Oh, sorry this is in Odin forum. I missed this part, I though we are talking about C :)

ext_loader is here: https://github.com/KhronosGroup/Vulkan-Docs/tree/1.0/src/ext_loader