diff --git a/src/include/kompute/Algorithm.hpp b/src/include/kompute/Algorithm.hpp index c459babf..650d8a46 100644 --- a/src/include/kompute/Algorithm.hpp +++ b/src/include/kompute/Algorithm.hpp @@ -291,7 +291,7 @@ class Algorithm void destroy(); - private: + protected: // -------------- NEVER OWNED RESOURCES std::shared_ptr mDevice; std::vector> mMemObjects; @@ -312,6 +312,7 @@ class Algorithm std::shared_ptr mPipeline; bool mFreePipeline = false; + private: // -------------- ALWAYS OWNED RESOURCES std::vector mSpirv; void* mSpecializationConstantsData = nullptr; diff --git a/src/include/kompute/Sequence.hpp b/src/include/kompute/Sequence.hpp index ba0e90e6..169321c7 100644 --- a/src/include/kompute/Sequence.hpp +++ b/src/include/kompute/Sequence.hpp @@ -276,7 +276,7 @@ class Sequence : public std::enable_shared_from_this */ void destroy(); - private: + protected: // -------------- NEVER OWNED RESOURCES std::shared_ptr mPhysicalDevice = nullptr; std::shared_ptr mDevice = nullptr; @@ -298,6 +298,7 @@ class Sequence : public std::enable_shared_from_this bool mRecording = false; bool mIsRunning = false; + private: // Create functions void createCommandPool(); void createCommandBuffer();