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

Function TEST_F

tests/unit/tooling.cpp:18–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16class NegativeTooling : public VkLayerTest {};
17
18TEST_F(NegativeTooling, PrivateDataFeature) {
19 TEST_DESCRIPTION("Test privateData feature not being enabled.");
20 AddRequiredExtensions(VK_EXT_PRIVATE_DATA_EXTENSION_NAME);
21 // feature not enabled
22 RETURN_IF_SKIP(Init());
23
24 bool vulkan_13 = (DeviceValidationVersion() >= VK_API_VERSION_1_3);
25
26 VkPrivateDataSlotEXT data_slot;
27 VkPrivateDataSlotCreateInfoEXT data_create_info = vku::InitStructHelper();
28 data_create_info.flags = 0;
29 m_errorMonitor->SetDesiredError("VUID-vkCreatePrivateDataSlot-privateData-04564");
30 vk::CreatePrivateDataSlotEXT(*m_device, &data_create_info, NULL, &data_slot);
31 m_errorMonitor->VerifyFound();
32 if (vulkan_13) {
33 m_errorMonitor->SetDesiredError("VUID-vkCreatePrivateDataSlot-privateData-04564");
34 vk::CreatePrivateDataSlot(*m_device, &data_create_info, NULL, &data_slot);
35 m_errorMonitor->VerifyFound();
36 }
37}
38
39TEST_F(NegativeTooling, PrivateDataSetNonDevice) {
40 TEST_DESCRIPTION("Use Private Data on a non-Device object type.");

Callers

nothing calls this directly

Calls 12

CreatePrivateDataSlotEXTFunction · 0.85
CreatePrivateDataSlotFunction · 0.85
SetPrivateDataFunction · 0.85
DestroyPrivateDataSlotFunction · 0.85
GetPrivateDataFunction · 0.85
CmdSetCheckpointNVFunction · 0.85
SetDesiredErrorMethod · 0.80
FeaturesMethod · 0.80
VerifyFoundMethod · 0.45
handleMethod · 0.45
DestroyMethod · 0.45

Tested by

no test coverage detected