mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Add explicit casts to DispatchLoaderDynamic::init(vk::Instance const&, vk::Device const&) (#344)
This commit is contained in:
parent
c5c5fea2dd
commit
ed11cd8eb8
@ -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.
|
// 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 = {})
|
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)
|
#endif // !defined(VK_NO_PROTOTYPES)
|
||||||
|
|
||||||
|
@ -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.
|
// 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 = {})
|
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)
|
#endif // !defined(VK_NO_PROTOTYPES)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user