MCPcopy Create free account
hub / github.com/KomputeProject/kompute / createCommandPool

Method createCommandPool

src/Sequence.cpp:300–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300void
301Sequence::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
319void
320Sequence::createCommandBuffer()

Callers 1

SequenceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected