Update StructureChain.cpp

This commit is contained in:
Andreas Süßenbach 2023-06-21 09:19:40 +02:00 committed by GitHub
parent 50c537eb91
commit e8eac44fe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,19 @@ int main( int /*argc*/, char ** /*argv*/ )
vk::PhysicalDevicePushDescriptorPropertiesKHR> vk::PhysicalDevicePushDescriptorPropertiesKHR>
sc7; sc7;
#if !defined(NDEBUG)
void * pNext = sc7.get<vk::PhysicalDeviceIDProperties>().pNext;
#endif
sc7.assign<vk::PhysicalDeviceIDProperties>( {} );
assert( pNext == sc7.get<vk::PhysicalDeviceIDProperties>().pNext );
#if !defined(NDEBUG)
void * pNext1 = sc7.get<vk::PhysicalDeviceMaintenance3Properties>().pNext;
#endif
sc7.assign<vk::PhysicalDeviceMaintenance3Properties>( {} ).assign<vk::PhysicalDeviceIDProperties>( {} );
assert( pNext == sc7.get<vk::PhysicalDeviceIDProperties>().pNext );
assert( pNext1 == sc7.get<vk::PhysicalDeviceMaintenance3Properties>().pNext );
// some checks on unmodified chains // some checks on unmodified chains
assert( sc7.isLinked<vk::PhysicalDeviceProperties2>() ); assert( sc7.isLinked<vk::PhysicalDeviceProperties2>() );
assert( sc7.isLinked<vk::PhysicalDeviceMaintenance3Properties>() ); assert( sc7.isLinked<vk::PhysicalDeviceMaintenance3Properties>() );