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

Method BasicComputeTest

tests/unit/debug_printf.cpp:50–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48};
49
50void 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
68TEST_F(NegativeDebugPrintf, Float) {
69 const char* shader_source = R"glsl(

Callers

nothing calls this directly

Calls 9

VkShaderObjClass · 0.85
CmdBindPipelineFunction · 0.85
CmdDispatchFunction · 0.85
CreateComputePipelineMethod · 0.80
SetDesiredInfoMethod · 0.80
SubmitAndWaitMethod · 0.80
BeginMethod · 0.45
EndMethod · 0.45
VerifyFoundMethod · 0.45

Tested by

no test coverage detected