| 48 | }; |
| 49 | |
| 50 | void NegativeDebugPrintf::BasicComputeTest(const char* shader, const char* message) { |
| 51 | RETURN_IF_SKIP(InitDebugPrintfFramework()); |
| 52 | RETURN_IF_SKIP(InitState()); |
| 53 | |
| 54 | CreateComputePipelineHelper pipe(*this); |
| 55 | pipe.cs_ = VkShaderObj(*m_device, shader, VK_SHADER_STAGE_COMPUTE_BIT); |
| 56 | pipe.CreateComputePipeline(); |
| 57 | |
| 58 | m_command_buffer.Begin(); |
| 59 | vk::CmdBindPipeline(m_command_buffer, VK_PIPELINE_BIND_POINT_COMPUTE, pipe); |
| 60 | vk::CmdDispatch(m_command_buffer, 1, 1, 1); |
| 61 | m_command_buffer.End(); |
| 62 | |
| 63 | m_errorMonitor->SetDesiredInfo(message); |
| 64 | m_default_queue->SubmitAndWait(m_command_buffer); |
| 65 | m_errorMonitor->VerifyFound(); |
| 66 | } |
| 67 | |
| 68 | TEST_F(NegativeDebugPrintf, Float) { |
| 69 | const char* shader_source = R"glsl( |
nothing calls this directly
no test coverage detected