From 4ecb0734164ff13e7f0870f81b399e1ab7d6163d Mon Sep 17 00:00:00 2001 From: sugoi1 Date: Fri, 28 Jan 2022 11:06:17 -0500 Subject: [PATCH] Update VulkanHppGenerator.cpp --- VulkanHppGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 6b669e7..0e25074 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -421,7 +421,7 @@ ${texelsPerBlockCases} switch( format ) { ${blockExtentCases} - default: return {1, 1, 1 }; + default: return {{1, 1, 1 }}; } } @@ -557,7 +557,7 @@ ${planeWidthDivisorCases} std::vector blockExtent = tokenize( traitIt->second.blockExtent, "," ); assert( blockExtent.size() == 3 ); blockExtentCases += - caseString + " return { " + blockExtent[0] + ", " + blockExtent[1] + ", " + blockExtent[2] + " };\n"; + caseString + " return {{ " + blockExtent[0] + ", " + blockExtent[1] + ", " + blockExtent[2] + " }};\n"; } if ( !traitIt->second.compressed.empty() ) {