| 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 | { |
no test coverage detected