Skip to content

Conversation

tourist1584970446
Copy link

Fix for #17

@tourist1584970446
Copy link
Author

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant