| 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 | { |
nothing calls this directly
no test coverage detected