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

Function TEST_F

tests/unit/dynamic_state.cpp:34–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32};
33
34TEST_F(NegativeDynamicState, DepthBiasNotBound) {
35 TEST_DESCRIPTION(
36 "Run a simple draw calls to validate failure when Depth Bias dynamic state is required but not correctly bound.");
37 RETURN_IF_SKIP(Init());
38 InitRenderTarget();
39
40 CreatePipelineHelper pipe(*this);
41 pipe.AddDynamicState(VK_DYNAMIC_STATE_DEPTH_BIAS);
42 pipe.rs_state_ci_.lineWidth = 1.0f;
43 pipe.rs_state_ci_.depthBiasEnable = VK_TRUE;
44 pipe.CreateGraphicsPipeline();
45
46 m_command_buffer.Begin();
47 vk::CmdBindPipeline(m_command_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, pipe);
48 m_command_buffer.BeginRenderPass(m_renderPassBeginInfo);
49
50 m_errorMonitor->SetDesiredError("VUID-vkCmdDraw-None-07834");
51 vk::CmdDraw(m_command_buffer, 3, 1, 0, 0);
52 m_errorMonitor->VerifyFound();
53}
54
55TEST_F(NegativeDynamicState, LineWidthNotBound) {
56 TEST_DESCRIPTION(

Callers

nothing calls this directly

Calls 15

CmdBindPipelineFunction · 0.85
CmdDrawFunction · 0.85
CmdSetLineStippleKHRFunction · 0.85
CmdSetScissorFunction · 0.85
size32Function · 0.85
CmdSetCullModeEXTFunction · 0.85
CmdSetDepthCompareOpEXTFunction · 0.85
CmdSetDepthTestEnableEXTFunction · 0.85

Tested by

no test coverage detected