diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 9775ccd..9f6b8a8 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -1220,14 +1220,16 @@ void VulkanHppGenerator::appendDispatchLoaderDynamic(std::string & str) } } - void init( vk::Instance instance ) VULKAN_HPP_NOEXCEPT + void init( vk::Instance instanceCpp ) VULKAN_HPP_NOEXCEPT { + VkInstance instance = static_cast(instanceCpp); )"; str += strInstanceFunctions; str += strDeviceFunctionsInstance; str += " }\n\n"; - str += " void init( vk::Device device ) VULKAN_HPP_NOEXCEPT\n {\n"; + str += " void init( vk::Device deviceCpp ) VULKAN_HPP_NOEXCEPT\n {\n"; + str += " VkDevice device = static_cast(deviceCpp);\n"; str += strDeviceFunctions; str += R"( } }; diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index c211b12..273fb15 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -74346,8 +74346,9 @@ namespace VULKAN_HPP_NAMESPACE } } - void init( vk::Instance instance ) VULKAN_HPP_NOEXCEPT + void init( vk::Instance instanceCpp ) VULKAN_HPP_NOEXCEPT { + VkInstance instance = static_cast(instanceCpp); #ifdef VK_USE_PLATFORM_ANDROID_KHR vkCreateAndroidSurfaceKHR = PFN_vkCreateAndroidSurfaceKHR( vkGetInstanceProcAddr( instance, "vkCreateAndroidSurfaceKHR" ) ); #endif /*VK_USE_PLATFORM_ANDROID_KHR*/ @@ -74775,8 +74776,9 @@ namespace VULKAN_HPP_NAMESPACE vkQueueWaitIdle = PFN_vkQueueWaitIdle( vkGetInstanceProcAddr( instance, "vkQueueWaitIdle" ) ); } - void init( vk::Device device ) VULKAN_HPP_NOEXCEPT + void init( vk::Device deviceCpp ) VULKAN_HPP_NOEXCEPT { + VkDevice device = static_cast(deviceCpp); vkBeginCommandBuffer = PFN_vkBeginCommandBuffer( vkGetDeviceProcAddr( device, "vkBeginCommandBuffer" ) ); vkCmdBeginConditionalRenderingEXT = PFN_vkCmdBeginConditionalRenderingEXT( vkGetDeviceProcAddr( device, "vkCmdBeginConditionalRenderingEXT" ) ); vkCmdBeginDebugUtilsLabelEXT = PFN_vkCmdBeginDebugUtilsLabelEXT( vkGetDeviceProcAddr( device, "vkCmdBeginDebugUtilsLabelEXT" ) );