Skip to content

Commit

Permalink
Add support for a new class of commands. (#1741)
Browse files Browse the repository at this point in the history
  • Loading branch information
asuessenbach authored Nov 29, 2023
1 parent 5bd1e56 commit 84b77d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions VulkanHppGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3687,7 +3687,8 @@ std::string VulkanHppGenerator::generateCommandResultMultiSuccessWithErrors1Retu
{
if ( commandData.params[vectorParams.begin()->second.lenParam].type.type == "uint32_t" )
{
if ( isStructureChainAnchor( commandData.params[vectorParams.begin()->first].type.type ) )
if ( ( ( commandData.params[vectorParams.begin()->first].type.type != "void" ) &&
!isHandleType( commandData.params[vectorParams.begin()->first].type.type ) ) )
{
return generateCommandSetInclusive( name,
commandData,
Expand Down Expand Up @@ -5026,7 +5027,7 @@ std::string VulkanHppGenerator::generateConstexprDefines() const
std::find_if( enumConstants.begin(), enumConstants.end(), []( auto const & keyval ) { return keyval.first.ends_with( "_EXTENSION_NAME" ); } );
auto const & specVersionMacroPtr =
std::find_if( enumConstants.begin(), enumConstants.end(), []( auto const & keyval ) { return keyval.first.ends_with( "_SPEC_VERSION" ); } );
assert( extensionMacroPtr != enumConstants.end());
assert( extensionMacroPtr != enumConstants.end() );
assert( specVersionMacroPtr != enumConstants.end() );

auto const & extensionMacro = extensionMacroPtr->first;
Expand Down Expand Up @@ -13272,7 +13273,7 @@ void VulkanHppGenerator::readExtension( tinyxml2::XMLElement const * element )
{ "type", { "device", "instance" } } } );
checkElements( line, children, { { "require", false } } );

ExtensionData extensionData{ .xmlLine = line };
ExtensionData extensionData{ .xmlLine = line };
for ( auto const & attribute : attributes )
{
if ( attribute.first == "depends" )
Expand Down

0 comments on commit 84b77d1

Please sign in to comment.