mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Add missing cast from VkResult to vk::Result. (#1901)
This commit is contained in:
parent
66af8942cb
commit
45d90067ee
@ -3299,11 +3299,11 @@ std::string VulkanHppGenerator::generateCallSequence( std::string const &
|
|||||||
}
|
}
|
||||||
else
|
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 )
|
if ( result == VULKAN_HPP_NAMESPACE::Result::eSuccess )
|
||||||
{
|
{
|
||||||
${resizes}
|
${resizes}
|
||||||
result = ${dispatcher}${vkCommand}( ${secondCallArguments} );
|
result = static_cast<VULKAN_HPP_NAMESPACE::Result>( ${dispatcher}${vkCommand}( ${secondCallArguments} ) );
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user