#Vulkan unresolved external vkCmdSetVertexInputEXT

8 messages · Page 1 of 1 (latest)

sour gate
#

Im currently working a vulkan project and I'm trying to start with bindless rendering. For that i need vkCmdSetVertexInputEXT(). I added the extension (afaik) and my intellisense shows the function but for some reason the linker can't.
The relevant files are device.h/cpp, helpers.h/cpp and GP2_Vulkan_Project.cpp

https://github.com/Yannick-Ruijter/vulkan-refactor-copy

GitHub

Contribute to Yannick-Ruijter/vulkan-refactor-copy development by creating an account on GitHub.

neon relicBOT
#

When your question is answered use !solved or the button below to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

frail acorn
#

how did you "add the extension"?

sour gate
#

i pass

const std::vector<const char*> deviceExtensions = {
    VK_KHR_SWAPCHAIN_EXTENSION_NAME,
    VK_EXT_VERTEX_INPUT_DYNAMIC_STATE_EXTENSION_NAME
};

to my device class which uses it like this

VkPhysicalDeviceVulkan13Features features13{
    .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES,
    .synchronization2 = VK_TRUE,
    .dynamicRendering = VK_TRUE
};

VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT vertexInputDynamicStateFeatures{
    .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_INPUT_DYNAMIC_STATE_FEATURES_EXT,
    .pNext = &features13,
    .vertexInputDynamicState = VK_TRUE,
};

VkDeviceCreateInfo createInfo{};
createInfo.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO;

createInfo.queueCreateInfoCount = static_cast<uint32_t>(queueCreateInfos.size());
createInfo.pQueueCreateInfos = queueCreateInfos.data();

createInfo.pEnabledFeatures = &deviceFeatures;

createInfo.enabledExtensionCount = static_cast<uint32_t>(m_DeviceExtensions.size());
createInfo.ppEnabledExtensionNames = m_DeviceExtensions.data();

createInfo.pNext = &vertexInputDynamicStateFeatures;
frail acorn
#

how do you load the vulkan functions?

sour gate
#

it seems that was the issue. I wasn't loading the function anywher

#

ty

neon relicBOT
# neon relic

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity