mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #1159 from asuessenbach/formats
Downgrade <formats> tag from required to optional.
This commit is contained in:
commit
cdbfbcbc80
@ -385,6 +385,11 @@ ${enums}
|
|||||||
|
|
||||||
std::string VulkanHppGenerator::generateFormatTraits() const
|
std::string VulkanHppGenerator::generateFormatTraits() const
|
||||||
{
|
{
|
||||||
|
if ( m_formats.empty() )
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
const std::string formatTraitsTemplate = R"(
|
const std::string formatTraitsTemplate = R"(
|
||||||
//=====================
|
//=====================
|
||||||
//=== Format Traits ===
|
//=== Format Traits ===
|
||||||
@ -14115,12 +14120,12 @@ void VulkanHppGenerator::readRegistry( tinyxml2::XMLElement const * element )
|
|||||||
{ "enums", false },
|
{ "enums", false },
|
||||||
{ "extensions", true },
|
{ "extensions", true },
|
||||||
{ "feature", false },
|
{ "feature", false },
|
||||||
{ "formats", true },
|
|
||||||
{ "platforms", true },
|
{ "platforms", true },
|
||||||
{ "spirvcapabilities", true },
|
{ "spirvcapabilities", true },
|
||||||
{ "spirvextensions", true },
|
{ "spirvextensions", true },
|
||||||
{ "tags", true },
|
{ "tags", true },
|
||||||
{ "types", true } } );
|
{ "types", true } },
|
||||||
|
{ "formats" } );
|
||||||
for ( auto child : children )
|
for ( auto child : children )
|
||||||
{
|
{
|
||||||
const std::string value = child->Value();
|
const std::string value = child->Value();
|
||||||
|
Loading…
Reference in New Issue
Block a user