Make structure information "obsolete" a vector of bool.

+ remove an obsolete assertion
This commit is contained in:
asuessenbach
2020-12-10 11:11:13 +01:00
parent 8e8fd27337
commit 4bc8906990
3 changed files with 13 additions and 9 deletions

View File

@@ -17850,13 +17850,13 @@ namespace VULKAN_HPP_NAMESPACE
, scratchData( scratchData_ )
{
# ifdef VULKAN_HPP_NO_EXCEPTIONS
VULKAN_HPP_ASSERT( geometries_.size() == pGeometries_.size() );
VULKAN_HPP_ASSERT( geometries_.empty() || pGeometries_.empty() || ( geometries_.size() == pGeometries_.size() ) );
# else
if ( geometries_.size() != pGeometries_.size() )
if ( !geometries_.empty() && !pGeometries_.empty() && ( geometries_.size() != pGeometries_.size() ) )
{
throw LogicError(
VULKAN_HPP_NAMESPACE_STRING
"::AccelerationStructureBuildGeometryInfoKHR::AccelerationStructureBuildGeometryInfoKHR: geometries_.size() != pGeometries_.size()" );
"::AccelerationStructureBuildGeometryInfoKHR::AccelerationStructureBuildGeometryInfoKHR: !geometries_.empty() && !pGeometries_.empty() && ( geometries_.size() != pGeometries_.size() )" );
}
# endif /*VULKAN_HPP_NO_EXCEPTIONS*/
}