| 32 | }; |
| 33 | |
| 34 | TEST_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 | |
| 55 | TEST_F(NegativeDynamicState, LineWidthNotBound) { |
| 56 | TEST_DESCRIPTION( |
nothing calls this directly
no test coverage detected