mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #943 from asuessenbach/fuchsia
Correct data type in singular version of one generated function flavor.
This commit is contained in:
commit
c262d08507
@ -6050,8 +6050,8 @@ std::string
|
||||
std::string commandName =
|
||||
stripPluralS( determineCommandName( name, commandData.params[initialSkipCount - 1].type.type, m_tags ) );
|
||||
std::string nodiscard = determineNoDiscard( 1 < commandData.successCodes.size(), 1 < commandData.errorCodes.size() );
|
||||
std::string returnType =
|
||||
constructReturnType( commandData, stripPrefix( commandData.params[returnParamIndex].type.type, "Vk" ) );
|
||||
std::string dataType = stripPrefix( commandData.params[returnParamIndex].type.type, "Vk" );
|
||||
std::string returnType = constructReturnType( commandData, dataType );
|
||||
|
||||
if ( definition )
|
||||
{
|
||||
@ -6059,7 +6059,7 @@ std::string
|
||||
R"( template <typename Dispatch>
|
||||
${nodiscard}VULKAN_HPP_INLINE ${returnType} ${className}${classSeparator}${commandName}( ${argumentList} ) const
|
||||
{
|
||||
${returnType} ${dataName};
|
||||
${dataType} ${dataName};
|
||||
Result result = static_cast<Result>( d.${vkCommand}( ${callArguments} ) );
|
||||
return createResultValue( result, ${dataName}, VULKAN_HPP_NAMESPACE_STRING "::${className}${classSeparator}${commandName}"${successCodeList} );
|
||||
})";
|
||||
@ -6075,6 +6075,7 @@ std::string
|
||||
{ "classSeparator", commandData.handle.empty() ? "" : "::" },
|
||||
{ "commandName", commandName },
|
||||
{ "dataName", stripPluralS( startLowerCase( stripPrefix( commandData.params[returnParamIndex].name, "p" ) ) ) },
|
||||
{ "dataType", dataType },
|
||||
{ "nodiscard", nodiscard },
|
||||
{ "returnType", returnType },
|
||||
{ "successCodeList", constructSuccessCodeList( commandData.successCodes ) },
|
||||
|
Loading…
Reference in New Issue
Block a user