| 275 | } |
| 276 | |
| 277 | std::shared_ptr<Sequence> |
| 278 | Sequence::record(std::shared_ptr<OpBase> op) |
| 279 | { |
| 280 | KP_LOG_DEBUG("Kompute Sequence record function started"); |
| 281 | |
| 282 | this->begin(); |
| 283 | |
| 284 | KP_LOG_DEBUG( |
| 285 | "Kompute Sequence running record on OpBase derived class instance"); |
| 286 | |
| 287 | op->record(*this->mCommandBuffer); |
| 288 | |
| 289 | this->mOperations.push_back(op); |
| 290 | |
| 291 | if (this->timestampQueryPool) |
| 292 | this->mCommandBuffer->writeTimestamp( |
| 293 | vk::PipelineStageFlagBits::eAllCommands, |
| 294 | *this->timestampQueryPool, |
| 295 | this->mOperations.size()); |
| 296 | |
| 297 | return shared_from_this(); |
| 298 | } |
| 299 | |
| 300 | void |
| 301 | Sequence::createCommandPool() |