Correct capitalization of allocateInitializer used in vector-returning functions with provided allocator.

This commit is contained in:
asuessenbach 2021-04-19 10:03:58 +02:00
parent 4858cb67c1
commit 11b851dc20

View File

@ -5263,7 +5263,7 @@ std::string VulkanHppGenerator::constructCommandResultGetVector( std::string con
return replaceWithMap( return replaceWithMap(
functionTemplate, functionTemplate,
{ { "allocateInitializer", withAllocator ? ( ", " + vectorElementType + "Allocator" ) : "" }, { { "allocateInitializer", withAllocator ? ( ", " + startLowerCase( allocatorType ) ) : "" },
{ "allocatorType", allocatorType }, { "allocatorType", allocatorType },
{ "argumentList", argumentList }, { "argumentList", argumentList },
{ "callArguments", { "callArguments",
@ -5355,7 +5355,7 @@ std::string
return replaceWithMap( return replaceWithMap(
functionTemplate, functionTemplate,
{ { "allocateInitializer", withAllocator ? ( ", " + vectorElementType + "Allocator" ) : "" }, { { "allocateInitializer", withAllocator ? ( ", " + startLowerCase( allocatorType ) ) : "" },
{ "allocatorType", allocatorType }, { "allocatorType", allocatorType },
{ "argumentList", argumentList }, { "argumentList", argumentList },
{ "callArguments", { "callArguments",