Update to Vulkan 1.1.71 (#196)

This commit is contained in:
Andreas Süßenbach
2018-03-19 11:50:29 +01:00
committed by Markus Tavenrath
parent 141e8ce93b
commit 46d1b60267
3 changed files with 402 additions and 9 deletions

View File

@@ -1643,7 +1643,7 @@ tinyxml2::XMLNode const* VulkanHppGenerator::readCommandParamType(tinyxml2::XMLN
{
// start type with "const" or "struct", if needed
std::string value = trim(node->Value());
assert((value == "const") || (value == "struct"));
assert((value == "const") || (value == "struct") || (value == "const struct"));
param.type = value + " ";
node = node->NextSibling();
assert(node);
@@ -2994,8 +2994,8 @@ void VulkanHppGenerator::writeCallPlainTypeParameter(std::ostream & os, ParamDat
}
else
{
// it's const pointer to void (only other type that occurs) -> just use the name
assert((paramData.pureType == "void") && !paramData.optional);
// it's const pointer to something else -> just use the name
assert(!paramData.optional);
os << paramData.name;
}
}