Vulkan.NET icon indicating copy to clipboard operation
Vulkan.NET copied to clipboard

Fix: missing enums in bindings generator

Open tourist1584970446 opened this issue 7 months ago • 2 comments

Fix for https://github.com/EvergineTeam/Vulkan.NET/issues/17

tourist1584970446 avatar Jun 08 '25 21:06 tourist1584970446

Not sure what best way is to handle commands that need to be loaded with vkGetDeviceProcAddr. VulkanNative.LoadFunctionPointers(instance); already exist, but no such thing for devices yet. Maybe its better to load DeviceFunctions with a separate load call? To load of them with vkGetDeviceProcAddr?

tourist1584970446 avatar Jun 09 '25 17:06 tourist1584970446

I have implemented loading device level functions, so now you can use it like this:

after initializing the logical device: VulkanNative.LoadDeviceFunctionPointers(device);

then you can call: VulkanNative.vkAcquireFullScreenExclusiveModeEXT(device, swapChain)

whereas before, you would get a NullReferenceException because that function never got loaded properly. It's only I suggestion. It is also currently how I am using it in my own project.

tourist1584970446 avatar Jun 09 '25 19:06 tourist1584970446