mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2025-09-11 13:01:57 -04:00
Correct check on exported command. (#2199)
This commit is contained in:
parent
4a6293e749
commit
d6a9738739
@ -14747,7 +14747,7 @@ void VulkanHppGenerator::readFeatureRequire( tinyxml2::XMLElement const * elemen
|
|||||||
checkForError( commandIt != m_commands.end(),
|
checkForError( commandIt != m_commands.end(),
|
||||||
requireData.commands.back().xmlLine,
|
requireData.commands.back().xmlLine,
|
||||||
"feature <" + featureData.name + "> requires unknown command <" + requireData.commands.back().name + ">" );
|
"feature <" + featureData.name + "> requires unknown command <" + requireData.commands.back().name + ">" );
|
||||||
checkForError( ( 319 <= std::stoi( m_version ) ) && !commandIt->second.exports.empty(),
|
checkForError( ( std::stoi( m_version ) < 319 ) || !commandIt->second.exports.empty(),
|
||||||
commandIt->second.xmlLine,
|
commandIt->second.xmlLine,
|
||||||
"command <" + commandIt->first + "> is required by feature <" + featureData.name + "> but is not marked as exported" );
|
"command <" + commandIt->first + "> is required by feature <" + featureData.name + "> but is not marked as exported" );
|
||||||
checkForError( std::ranges::includes( featureData.api, commandIt->second.exports ),
|
checkForError( std::ranges::includes( featureData.api, commandIt->second.exports ),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user