MCPcopy Create free account
hub / github.com/Ipotrick/Daxa / present

Method present

src/utils/impl_task_graph.cpp:1923–1935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1921 }
1922
1923 void TaskGraph::present(TaskPresentInfo const & info)
1924 {
1925 ImplTaskGraph & impl = *r_cast<ImplTaskGraph *>(this->object);
1926
1927 DAXA_DBG_ASSERT_TRUE_M(!impl.present.has_value(), "ERROR: A task graph can only record up to a single present!");
1928 DAXA_DBG_ASSERT_TRUE_M(impl.info.swapchain.has_value(), "ERROR: Can only record a present to a task graph that has a swapchain given on creation!");
1929 DAXA_DBG_ASSERT_TRUE_M(impl.submits.size() > 0, "ERROR: A task graph present can only be recorded AFTER one or more submits!");
1930
1931 impl.present = TaskGraphPresent{
1932 .submit_index = static_cast<u32>(impl.submits.size()) - 1u,
1933 .queue = info.queue,
1934 };
1935 }
1936
1937 void TaskGraph::complete(TaskCompleteInfo const & /*unused*/)
1938 {

Callers 5

mesh_shader_triFunction · 0.80
mainFunction · 0.80
record_tasksMethod · 0.80
record_tasksMethod · 0.80

Calls 2

has_valueMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected