Add missing cast from VkResult to vk::Result. (#1901)

This commit is contained in:
Andreas Süßenbach 2024-06-13 13:45:46 +02:00 committed by GitHub
parent 66af8942cb
commit 45d90067ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3299,11 +3299,11 @@ std::string VulkanHppGenerator::generateCallSequence( std::string const &
}
else
{
std::string const callSequenceTemplate = R"(VULKAN_HPP_NAMESPACE::Result result = ${dispatcher}${vkCommand}( ${firstCallArguments} );
std::string const callSequenceTemplate = R"(VULKAN_HPP_NAMESPACE::Result result = static_cast<VULKAN_HPP_NAMESPACE::Result>( ${dispatcher}${vkCommand}( ${firstCallArguments} ) );
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
{
${resizes}
result = ${dispatcher}${vkCommand}( ${secondCallArguments} );
result = static_cast<VULKAN_HPP_NAMESPACE::Result>( ${dispatcher}${vkCommand}( ${secondCallArguments} ) );
}
)";