| 16 | class NegativeTooling : public VkLayerTest {}; |
| 17 | |
| 18 | TEST_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 | |
| 39 | TEST_F(NegativeTooling, PrivateDataSetNonDevice) { |
| 40 | TEST_DESCRIPTION("Use Private Data on a non-Device object type."); |
nothing calls this directly
no test coverage detected