mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Update StructureChain.cpp
This commit is contained in:
parent
50c537eb91
commit
e8eac44fe1
@ -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>() );
|
||||||
|
Loading…
Reference in New Issue
Block a user