Special handling for detecting mutual exclusive len usage on structures.
This commit is contained in:
@@ -17844,19 +17844,19 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
, mode( mode_ )
|
||||
, srcAccelerationStructure( srcAccelerationStructure_ )
|
||||
, dstAccelerationStructure( dstAccelerationStructure_ )
|
||||
, geometryCount( static_cast<uint32_t>( geometries_.size() ) )
|
||||
, geometryCount( static_cast<uint32_t>( !geometries_.empty() ? geometries_.size() : pGeometries_.size() ) )
|
||||
, pGeometries( geometries_.data() )
|
||||
, ppGeometries( pGeometries_.data() )
|
||||
, scratchData( scratchData_ )
|
||||
{
|
||||
# ifdef VULKAN_HPP_NO_EXCEPTIONS
|
||||
VULKAN_HPP_ASSERT( geometries_.empty() || pGeometries_.empty() || ( geometries_.size() == pGeometries_.size() ) );
|
||||
VULKAN_HPP_ASSERT( ( !geometries_.empty() + !pGeometries_.empty() ) == 1 );
|
||||
# else
|
||||
if ( !geometries_.empty() && !pGeometries_.empty() && ( geometries_.size() != pGeometries_.size() ) )
|
||||
if ( ( !geometries_.empty() + !pGeometries_.empty() ) != 1 )
|
||||
{
|
||||
throw LogicError(
|
||||
VULKAN_HPP_NAMESPACE_STRING
|
||||
"::AccelerationStructureBuildGeometryInfoKHR::AccelerationStructureBuildGeometryInfoKHR: !geometries_.empty() && !pGeometries_.empty() && ( geometries_.size() != pGeometries_.size() )" );
|
||||
"::AccelerationStructureBuildGeometryInfoKHR::AccelerationStructureBuildGeometryInfoKHR: ( !geometries_.empty() + !pGeometries_.empty() ) != 1" );
|
||||
}
|
||||
# endif /*VULKAN_HPP_NO_EXCEPTIONS*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user