Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/include/kompute/Algorithm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ class Algorithm

void destroy();

private:
protected:
// -------------- NEVER OWNED RESOURCES
std::shared_ptr<vk::Device> mDevice;
std::vector<std::shared_ptr<Memory>> mMemObjects;
Expand All @@ -312,6 +312,7 @@ class Algorithm
std::shared_ptr<vk::Pipeline> mPipeline;
bool mFreePipeline = false;

private:
// -------------- ALWAYS OWNED RESOURCES
std::vector<uint32_t> mSpirv;
void* mSpecializationConstantsData = nullptr;
Expand Down
3 changes: 2 additions & 1 deletion src/include/kompute/Sequence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ class Sequence : public std::enable_shared_from_this<Sequence>
*/
void destroy();

private:
protected:
// -------------- NEVER OWNED RESOURCES
std::shared_ptr<vk::PhysicalDevice> mPhysicalDevice = nullptr;
std::shared_ptr<vk::Device> mDevice = nullptr;
Expand All @@ -298,6 +298,7 @@ class Sequence : public std::enable_shared_from_this<Sequence>
bool mRecording = false;
bool mIsRunning = false;

private:
// Create functions
void createCommandPool();
void createCommandBuffer();
Expand Down
Loading