Refactored to use shared pointers
This commit is contained in:
parent
81d592e6e0
commit
e8b0cac2c7
4 changed files with 21 additions and 22 deletions
|
|
@ -18,7 +18,7 @@ private:
|
|||
|
||||
public:
|
||||
Sequence();
|
||||
Sequence(vk::Device* device, vk::Queue* computeQueue, uint32_t queueIndex);
|
||||
Sequence(std::shared_ptr<vk::Device> device, std::shared_ptr<vk::Queue> computeQueue, uint32_t queueIndex);
|
||||
~Sequence();
|
||||
|
||||
// Record command functions
|
||||
|
|
@ -36,12 +36,12 @@ public:
|
|||
|
||||
|
||||
private:
|
||||
vk::Device* mDevice = nullptr;
|
||||
vk::Queue* mComputeQueue = nullptr;
|
||||
std::shared_ptr<vk::Device> mDevice = nullptr;
|
||||
std::shared_ptr<vk::Queue> mComputeQueue = nullptr;
|
||||
uint32_t mQueueIndex = -1;
|
||||
vk::CommandPool* mCommandPool = nullptr;
|
||||
std::shared_ptr<vk::CommandPool> mCommandPool = nullptr;
|
||||
bool mFreeCommandPool = false;
|
||||
vk::CommandBuffer* mCommandBuffer = nullptr;
|
||||
std::shared_ptr<vk::CommandBuffer> mCommandBuffer = nullptr;
|
||||
bool mFreeCommandBuffer = false;
|
||||
|
||||
// Record state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue