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

Method Sequence

src/Sequence.cpp:7–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace kp {
6
7Sequence::Sequence(std::shared_ptr<vk::PhysicalDevice> physicalDevice,
8 std::shared_ptr<vk::Device> device,
9 std::shared_ptr<vk::Queue> computeQueue,
10 uint32_t queueIndex,
11 uint32_t totalTimestamps)
12{
13 KP_LOG_DEBUG("Kompute Sequence Constructor with existing device & queue");
14
15 this->mPhysicalDevice = physicalDevice;
16 this->mDevice = device;
17 this->mComputeQueue = computeQueue;
18 this->mQueueIndex = queueIndex;
19
20 this->createCommandPool();
21 this->createCommandBuffer();
22 if (totalTimestamps > 0)
23 this->createTimestampQueryPool(totalTimestamps +
24 1); //+1 for the first one
25}
26
27Sequence::~Sequence()
28{

Callers

nothing calls this directly

Calls 3

createCommandPoolMethod · 0.95
createCommandBufferMethod · 0.95

Tested by

no test coverage detected