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

Function TEST_F

tests/unit/secondary_command_buffer.cpp:24–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22class NegativeSecondaryCommandBuffer : public VkLayerTest {};
23
24TEST_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
38TEST_F(NegativeSecondaryCommandBuffer, Barrier) {
39 TEST_DESCRIPTION("Add an invalid image barrier in a secondary command buffer");

Callers

nothing calls this directly

Calls 15

CmdBeginRenderPassFunction · 0.85
CmdPipelineBarrierFunction · 0.85
CmdExecuteCommandsFunction · 0.85
QueueSubmit2KHRFunction · 0.85
CreateEventFunction · 0.85
CmdSetEventFunction · 0.85
DestroyEventFunction · 0.85
VkShaderObjClass · 0.85
CmdBindPipelineFunction · 0.85
CmdBindDescriptorSetsFunction · 0.85
CmdDispatchFunction · 0.85

Tested by

no test coverage detected