Fix instance-level functions being loaded with vkGetDeviceProcAddr in vk::DispatchLoaderDynamic::init (#257)
This commit is contained in:
parent
127de1bf93
commit
e4447ba76e
@ -5122,7 +5122,8 @@ void VulkanHppGenerator::writeDelegationClassDynamic(std::ostream &os)
|
|||||||
enterProtect(os, command.second.protect);
|
enterProtect(os, command.second.protect);
|
||||||
if (!command.second.params.empty()
|
if (!command.second.params.empty()
|
||||||
&& m_handles.find(command.second.params[0].type) != m_handles.end()
|
&& 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)
|
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;
|
<< "(device ? device.getProcAddr( \"vk" << startUpperCase(command.second.fullName) << "\") : instance.getProcAddr( \"vk" << startUpperCase(command.second.fullName) << "\"));" << std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user