REfactored baseoperator to use smart pointer
This commit is contained in:
parent
e8b0cac2c7
commit
1ddd9f2bc4
3 changed files with 6 additions and 4 deletions
|
|
@ -14,7 +14,7 @@ BaseOperator::BaseOperator() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BaseOperator::BaseOperator(vk::CommandBuffer* commandBuffer) {
|
BaseOperator::BaseOperator(std::shared_ptr<vk::CommandBuffer> commandBuffer) {
|
||||||
SPDLOG_DEBUG("Compute BaseOperator constructor started");
|
SPDLOG_DEBUG("Compute BaseOperator constructor started");
|
||||||
this->mCommandBuffer = commandBuffer;
|
this->mCommandBuffer = commandBuffer;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,15 +14,15 @@ private:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BaseOperator();
|
BaseOperator();
|
||||||
BaseOperator(vk::CommandBuffer* commandBuffer);
|
BaseOperator(std::shared_ptr<vk::CommandBuffer> commandBuffer);
|
||||||
virtual ~BaseOperator();
|
virtual ~BaseOperator();
|
||||||
|
|
||||||
void init(std::string one, std::string two);
|
void init(std::string one, std::string two);
|
||||||
void record();
|
void record();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
vk::Device* mDevice;
|
std::shared_ptr<vk::Device> mDevice;
|
||||||
vk::CommandBuffer* mCommandBuffer;
|
std::shared_ptr<vk::CommandBuffer> mCommandBuffer;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,8 @@ private:
|
||||||
public:
|
public:
|
||||||
Manager();
|
Manager();
|
||||||
|
|
||||||
|
//Manager(std::shared_ptr<vk::Instance> instance, std::shared_ptr<vk::Device>, uint32_t queueIndex);
|
||||||
|
|
||||||
~Manager();
|
~Manager();
|
||||||
|
|
||||||
// Evaluate actions
|
// Evaluate actions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue