MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Profiles / TEST

Function TEST

library/test/test_api_reflection.cpp:28–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#endif
27
28TEST(api_get_profiles_beta, full) {
29 uint32_t propertyCount = 0;
30 VkResult result0 = vpGetProfiles(&propertyCount, nullptr);
31 EXPECT_EQ(VK_SUCCESS, result0);
32 EXPECT_TRUE(propertyCount > 1);
33
34 std::vector<VpProfileProperties> properties(propertyCount);
35 VkResult result1 = vpGetProfiles(&propertyCount, &properties[0]);
36 EXPECT_EQ(VK_SUCCESS, result1);
37 EXPECT_TRUE(propertyCount > 1);
38
39 EXPECT_STREQ(VP_KHR_ROADMAP_2022_NAME, properties[0].profileName);
40 EXPECT_EQ(VP_KHR_ROADMAP_2022_SPEC_VERSION, properties[0].specVersion);
41}
42
43TEST(api_get_profiles_beta, partial) {
44 uint32_t propertyCount = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected