MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / TEST_F

Function TEST_F

tests/unit/others.cpp:25–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23class NegativeOther : public VkLayerTest {};
24
25TEST_F(NegativeOther, VersionCheckPromotedAPIs) {
26 TEST_DESCRIPTION("Validate that promoted APIs are not valid in old versions.");
27 SetTargetApiVersion(VK_API_VERSION_1_0);
28
29#ifdef VK_USE_PLATFORM_METAL_EXT
30 GTEST_SKIP() << "VK_KHR_get_physical_device_properties2 is enabled due to VK_KHR_portability_subset";
31#endif
32
33 RETURN_IF_SKIP(Init());
34
35 // TODO - Currently not working on MockICD with Profiles using 1.0
36 // Seems API version is not being passed through correctly
37 if (IsPlatformMockICD()) {
38 GTEST_SKIP() << "Test not supported by MockICD";
39 }
40
41 const auto vkGetPhysicalDeviceProperties2 =
42 GetInstanceProcAddr<PFN_vkGetPhysicalDeviceProperties2>("vkGetPhysicalDeviceProperties2");
43
44 VkPhysicalDeviceProperties2 phys_dev_props_2 = vku::InitStructHelper();
45
46 m_errorMonitor->SetDesiredError("UNASSIGNED-API-Version-Violation");
47 vkGetPhysicalDeviceProperties2(Gpu(), &phys_dev_props_2);
48 m_errorMonitor->VerifyFound();
49}
50
51TEST_F(NegativeOther, UnsupportedPnextApiVersion) {
52 TEST_DESCRIPTION("Validate that newer pnext structs are not valid for old Vulkan versions.");

Callers

nothing calls this directly

Calls 15

VuidHashFunction · 0.85
CmdSetViewportFunction · 0.85
UnmapMemoryFunction · 0.85
ResetFencesFunction · 0.85
AllocateMemoryFunction · 0.85
CmdSetStencilReferenceFunction · 0.85
QueueSubmitFunction · 0.85
CreateSemaphoreFunction · 0.85
CreateCommandPoolFunction · 0.85

Tested by

no test coverage detected