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

Function TEST_F

tests/unit/graphics_library.cpp:21–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19class NegativeGraphicsLibrary : public GraphicsLibraryTest {};
20
21TEST_F(NegativeGraphicsLibrary, DSLs) {
22 TEST_DESCRIPTION("Create a pipeline layout with invalid descriptor set layouts");
23 RETURN_IF_SKIP(Init());
24
25 vkt::DescriptorSetLayout dsl(*m_device, {0, VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1, VK_SHADER_STAGE_VERTEX_BIT, nullptr});
26 VkPipelineLayoutCreateInfo pipeline_layout_ci = vku::InitStructHelper();
27 pipeline_layout_ci.pushConstantRangeCount = 0;
28 pipeline_layout_ci.pPushConstantRanges = nullptr;
29
30 m_errorMonitor->SetDesiredError("VUID-VkPipelineLayoutCreateInfo-graphicsPipelineLibrary-06753");
31 vkt::PipelineLayout pipeline_layout(*m_device, pipeline_layout_ci, {&dsl, nullptr});
32 m_errorMonitor->VerifyFound();
33}
34
35TEST_F(NegativeGraphicsLibrary, GPLDSLs) {
36 TEST_DESCRIPTION("Create a pipeline layout with invalid descriptor set layouts with VK_EXT_grahpics_pipeline_library enabled");

Callers

nothing calls this directly

Calls 15

size32Function · 0.85
CmdBindDescriptorSetsFunction · 0.85
CmdBindPipelineFunction · 0.85
CmdDrawFunction · 0.85
CmdSetPrimitiveTopologyFunction · 0.85
SetDesiredErrorMethod · 0.80
InitPreRasterLibInfoMethod · 0.80
InitFragmentLibInfoMethod · 0.80

Tested by

no test coverage detected