Add explicit casts to DispatchLoaderDynamic::init(vk::Instance const&, vk::Device const&) (#344)
This commit is contained in:
committed by
Markus Tavenrath
parent
c5c5fea2dd
commit
ed11cd8eb8
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user