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

Function task_image_access_to_layout_access

src/utils/impl_task_graph.cpp:403–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401 }
402
403 auto task_image_access_to_layout_access(TaskAccess const & taccess) -> std::tuple<ImageLayout, Access, TaskAccessConcurrency>
404 {
405 auto const [access, concurrency] = task_access_to_access(taccess);
406 // Kept for future reference:
407 [[maybe_unused]] bool const used_in_shader = is_task_stage_shader_access(taccess.stage);
408 [[maybe_unused]] bool const used_as_attachment = taccess.stage == TaskStages::COLOR_ATTACHMENT ||
409 taccess.stage == TaskStages::DEPTH_STENCIL_ATTACHMENT ||
410 taccess.stage == TaskStages::RESOLVE;
411
412 ImageLayout layout = ImageLayout::GENERAL;
413 return {layout, access, concurrency};
414 }
415
416 auto task_access_to_access(TaskAccess const & taccess) -> std::pair<Access, TaskAccessConcurrency>
417 {

Callers

nothing calls this directly

Calls 2

task_access_to_accessFunction · 0.85

Tested by

no test coverage detected