mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2025-01-10 08:50:08 +00:00
Merge pull request #1453 from asuessenbach/function
Add support for a new class of functions.
This commit is contained in:
commit
4863951e35
@ -3389,11 +3389,17 @@ std::string VulkanHppGenerator::generateCommandResultSingleSuccessNoErrors( std:
|
|||||||
case 0:
|
case 0:
|
||||||
{
|
{
|
||||||
std::vector<size_t> constPointerParams = determineConstPointerParams( commandData.params );
|
std::vector<size_t> constPointerParams = determineConstPointerParams( commandData.params );
|
||||||
if ( constPointerParams.empty() )
|
switch ( constPointerParams.size() )
|
||||||
{
|
{
|
||||||
return generateCommandSetStandardOrEnhanced(
|
case 0:
|
||||||
generateCommandStandard( name, commandData, initialSkipCount, definition ),
|
return generateCommandSetStandardOrEnhanced(
|
||||||
generateCommandEnhanced( name, commandData, initialSkipCount, definition, {}, {}, false, false, false, false ) );
|
generateCommandStandard( name, commandData, initialSkipCount, definition ),
|
||||||
|
generateCommandEnhanced( name, commandData, initialSkipCount, definition, {}, {}, false, false, false, false ) );
|
||||||
|
case 1:
|
||||||
|
return generateCommandSetStandardEnhanced(
|
||||||
|
definition,
|
||||||
|
generateCommandStandard( name, commandData, initialSkipCount, definition ),
|
||||||
|
generateCommandEnhanced( name, commandData, initialSkipCount, definition, {}, {}, false, false, false, false ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -11238,7 +11244,7 @@ void VulkanHppGenerator::readExtensionsExtensionRequire( tinyxml2::XMLElement co
|
|||||||
std::string depends;
|
std::string depends;
|
||||||
for ( auto const & attribute : attributes )
|
for ( auto const & attribute : attributes )
|
||||||
{
|
{
|
||||||
if (attribute.first == "depends")
|
if ( attribute.first == "depends" )
|
||||||
{
|
{
|
||||||
assert( depends.empty() );
|
assert( depends.empty() );
|
||||||
depends = attribute.second;
|
depends = attribute.second;
|
||||||
|
Loading…
Reference in New Issue
Block a user