| 22 | class NegativeSecondaryCommandBuffer : public VkLayerTest {}; |
| 23 | |
| 24 | TEST_F(NegativeSecondaryCommandBuffer, AsPrimary) { |
| 25 | TEST_DESCRIPTION("Create a secondary command buffer and pass it to QueueSubmit."); |
| 26 | m_errorMonitor->SetDesiredError("VUID-VkSubmitInfo-pCommandBuffers-00075"); |
| 27 | |
| 28 | RETURN_IF_SKIP(Init()); |
| 29 | |
| 30 | vkt::CommandBuffer secondary(*m_device, m_command_pool, VK_COMMAND_BUFFER_LEVEL_SECONDARY); |
| 31 | secondary.Begin(); |
| 32 | secondary.End(); |
| 33 | |
| 34 | m_default_queue->Submit(secondary); |
| 35 | m_errorMonitor->VerifyFound(); |
| 36 | } |
| 37 | |
| 38 | TEST_F(NegativeSecondaryCommandBuffer, Barrier) { |
| 39 | TEST_DESCRIPTION("Add an invalid image barrier in a secondary command buffer"); |
nothing calls this directly
no test coverage detected