| 4014 | } |
| 4015 | |
| 4016 | ImplTaskGraph::ImplTaskGraph(TaskGraphInfo a_info) |
| 4017 | : unique_index{ImplTaskGraph::exec_unique_next_index++}, info{std::move(a_info)}, |
| 4018 | task_memory{"TaskGraph task memory pool", a_info.task_memory_pool_size} |
| 4019 | { |
| 4020 | info.name = task_memory.allocate_copy_string(info.name); |
| 4021 | tasks = ArenaDynamicArray8k<ImplTask>(&task_memory); |
| 4022 | resources = ArenaDynamicArray8k<ImplTaskResource>(&task_memory); |
| 4023 | submits = ArenaDynamicArray8k<TasksSubmit>(&task_memory); |
| 4024 | if (a_info.staging_memory_pool_size != 0) |
| 4025 | { |
| 4026 | this->staging_memory = TransferMemoryPool{TransferMemoryPoolInfo{.device = info.device, .capacity = info.staging_memory_pool_size, .name = "Transfer Memory Pool"}}; |
| 4027 | } |
| 4028 | } |
| 4029 | |
| 4030 | ImplTaskGraph::~ImplTaskGraph() |
| 4031 | { |
nothing calls this directly
no test coverage detected