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,15 +14,15 @@ private:
|
|||
|
||||
public:
|
||||
BaseOperator();
|
||||
BaseOperator(vk::CommandBuffer* commandBuffer);
|
||||
BaseOperator(std::shared_ptr<vk::CommandBuffer> commandBuffer);
|
||||
virtual ~BaseOperator();
|
||||
|
||||
void init(std::string one, std::string two);
|
||||
void record();
|
||||
|
||||
private:
|
||||
vk::Device* mDevice;
|
||||
vk::CommandBuffer* mCommandBuffer;
|
||||
std::shared_ptr<vk::Device> mDevice;
|
||||
std::shared_ptr<vk::CommandBuffer> mCommandBuffer;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue