Add explicit casts to DispatchLoaderDynamic::init(vk::Instance const&, vk::Device const&) (#344)

This commit is contained in:
past-due 2019-06-24 03:14:17 -04:00 committed by Markus Tavenrath
parent c5c5fea2dd
commit ed11cd8eb8
2 changed files with 2 additions and 2 deletions

View File

@ -2367,7 +2367,7 @@ void VulkanHppGenerator::writeDispatchLoaderDynamic(std::ostream &os)
// This interface is designed to be used for per-device function pointers in combination with a linked vulkan library.
void init(vk::Instance const& instance, vk::Device const& device = {})
{
init(instance, ::vkGetInstanceProcAddr, device, device ? ::vkGetDeviceProcAddr : nullptr);
init(static_cast<VkInstance>(instance), ::vkGetInstanceProcAddr, static_cast<VkDevice>(device), device ? ::vkGetDeviceProcAddr : nullptr);
}
#endif // !defined(VK_NO_PROTOTYPES)

View File

@ -56921,7 +56921,7 @@ namespace VULKAN_HPP_NAMESPACE
// This interface is designed to be used for per-device function pointers in combination with a linked vulkan library.
void init(vk::Instance const& instance, vk::Device const& device = {})
{
init(instance, ::vkGetInstanceProcAddr, device, device ? ::vkGetDeviceProcAddr : nullptr);
init(static_cast<VkInstance>(instance), ::vkGetInstanceProcAddr, static_cast<VkDevice>(device), device ? ::vkGetDeviceProcAddr : nullptr);
}
#endif // !defined(VK_NO_PROTOTYPES)