Skip to content

Commit ad84f79

Browse files
committed
Extend function call tests with command promoted from VK_KHR_device_group_creation
1 parent 6225697 commit ad84f79

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

tests/FunctionCalls/FunctionCalls.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2113,6 +2113,27 @@ int main()
21132113
commandBuffer.setDeviceMask( deviceMask );
21142114
}
21152115

2116+
// Promoted from VK_KHR_device_group_creation
2117+
{
2118+
vk::Instance instance;
2119+
uint32_t physicalDeviceGroupCount;
2120+
vk::Result result = instance.enumeratePhysicalDeviceGroups( &physicalDeviceGroupCount, nullptr );
2121+
if ( result == vk::Result::eSuccess )
2122+
{
2123+
std::vector<vk::PhysicalDeviceGroupProperties> physicalDeviceGroupProperties( physicalDeviceGroupCount );
2124+
result = instance.enumeratePhysicalDeviceGroups( &physicalDeviceGroupCount, physicalDeviceGroupProperties.data() );
2125+
}
2126+
}
2127+
{
2128+
vk::Instance instance;
2129+
std::vector<vk::PhysicalDeviceGroupProperties> physicalDeviceGroupProperties = instance.enumeratePhysicalDeviceGroups();
2130+
}
2131+
{
2132+
vk::Instance instance;
2133+
std::allocator<vk::PhysicalDeviceGroupProperties> allocator;
2134+
std::vector<vk::PhysicalDeviceGroupProperties> physicalDeviceGroupProperties = instance.enumeratePhysicalDeviceGroups( allocator );
2135+
}
2136+
21162137
#if 0
21172138
{
21182139
vk::PhysicalDevice physicalDevice;

tests/FunctionCallsRAII/FunctionCallsRAII.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,5 +1049,11 @@ int main()
10491049
commandBuffer.setDeviceMask( deviceMask );
10501050
}
10511051

1052+
// Promoted from VK_KHR_device_group_creation
1053+
{
1054+
vk::Instance instance;
1055+
std::vector<vk::PhysicalDeviceGroupProperties> physicalDeviceGroupProperties = instance.enumeratePhysicalDeviceGroups();
1056+
}
1057+
10521058
return 0;
10531059
}

0 commit comments

Comments
 (0)