| 298 | } |
| 299 | |
| 300 | void |
| 301 | Sequence::createCommandPool() |
| 302 | { |
| 303 | KP_LOG_DEBUG("Kompute Sequence creating command pool"); |
| 304 | |
| 305 | if (!this->mDevice) { |
| 306 | throw std::runtime_error("Kompute Sequence device is null"); |
| 307 | } |
| 308 | |
| 309 | this->mFreeCommandPool = true; |
| 310 | |
| 311 | vk::CommandPoolCreateInfo commandPoolInfo(vk::CommandPoolCreateFlags(), |
| 312 | this->mQueueIndex); |
| 313 | this->mCommandPool = std::make_shared<vk::CommandPool>(); |
| 314 | this->mDevice->createCommandPool( |
| 315 | &commandPoolInfo, nullptr, this->mCommandPool.get()); |
| 316 | KP_LOG_DEBUG("Kompute Sequence Command Pool Created"); |
| 317 | } |
| 318 | |
| 319 | void |
| 320 | Sequence::createCommandBuffer() |