Merge pull request #823 from asuessenbach/assert

Removed an outdated assertion.
This commit is contained in:
Andreas Süßenbach 2020-11-12 17:55:03 +01:00 committed by GitHub
commit dc94e1589d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3829,8 +3829,7 @@ std::string VulkanHppGenerator::constructCommandResultGetChain( std::string cons
bool definition, bool definition,
size_t nonConstPointerIndex ) const size_t nonConstPointerIndex ) const
{ {
assert( !commandData.handle.empty() && ( commandData.returnType == "VkResult" ) && assert( !commandData.handle.empty() && ( commandData.returnType == "VkResult" ) && !commandData.errorCodes.empty() );
( commandData.successCodes.size() == 1 ) && !commandData.errorCodes.empty() );
std::set<size_t> skippedParams = std::set<size_t> skippedParams =
determineSkippedParams( commandData.handle, commandData.params, {}, { nonConstPointerIndex }, false ); determineSkippedParams( commandData.handle, commandData.params, {}, { nonConstPointerIndex }, false );