| 5 | namespace kp { |
| 6 | |
| 7 | Sequence::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 | |
| 27 | Sequence::~Sequence() |
| 28 | { |
nothing calls this directly
no test coverage detected