AdamYuan / VulkanQueueSelector

An single-header library to select optimal vulkan queues.
The Unlicense
1 stars 0 forks source link

Question: VqsVulkanFunctions #1

Closed ib00 closed 2 years ago

ib00 commented 2 years ago

I am using volk (https://github.com/zeux/volk) as a Vulkan loader.

When using your queue selector, I see that you need to specify appropriate functions in VqsVulkanFunctions. How does that play with loaders like volk?

AdamYuan commented 2 years ago

Since volk simply loads vulkan functions to global function pointers,

VqsVulkanFunctions functions = {
    vkGetPhysicalDeviceQueueFamilyProperties,
    vkGetPhysicalDeviceSurfaceSupportKHR
};

could work.