diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 215cc5e..6675fe0 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -5122,7 +5122,8 @@ void VulkanHppGenerator::writeDelegationClassDynamic(std::ostream &os) enterProtect(os, command.second.protect); if (!command.second.params.empty() && m_handles.find(command.second.params[0].type) != m_handles.end() - && command.second.params[0].type != "Instance") + && command.second.params[0].type != "Instance" + && command.second.params[0].type != "PhysicalDevice") { os << " vk" << startUpperCase(command.second.fullName) << " = PFN_vk" << startUpperCase(command.second.fullName) << "(device ? device.getProcAddr( \"vk" << startUpperCase(command.second.fullName) << "\") : instance.getProcAddr( \"vk" << startUpperCase(command.second.fullName) << "\"));" << std::endl;