Skip to content

Commit 6e5380d

Browse files
authored
Make Algorithm and Sequence members protected (#452)
Signed-off-by: Troels Ynddal <troels@ynddal.dk>
1 parent 9f0f0d8 commit 6e5380d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/include/kompute/Algorithm.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ class Algorithm
291291

292292
void destroy();
293293

294-
private:
294+
protected:
295295
// -------------- NEVER OWNED RESOURCES
296296
std::shared_ptr<vk::Device> mDevice;
297297
std::vector<std::shared_ptr<Memory>> mMemObjects;
@@ -312,6 +312,7 @@ class Algorithm
312312
std::shared_ptr<vk::Pipeline> mPipeline;
313313
bool mFreePipeline = false;
314314

315+
private:
315316
// -------------- ALWAYS OWNED RESOURCES
316317
std::vector<uint32_t> mSpirv;
317318
void* mSpecializationConstantsData = nullptr;

src/include/kompute/Sequence.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class Sequence : public std::enable_shared_from_this<Sequence>
276276
*/
277277
void destroy();
278278

279-
private:
279+
protected:
280280
// -------------- NEVER OWNED RESOURCES
281281
std::shared_ptr<vk::PhysicalDevice> mPhysicalDevice = nullptr;
282282
std::shared_ptr<vk::Device> mDevice = nullptr;
@@ -298,6 +298,7 @@ class Sequence : public std::enable_shared_from_this<Sequence>
298298
bool mRecording = false;
299299
bool mIsRunning = false;
300300

301+
private:
301302
// Create functions
302303
void createCommandPool();
303304
void createCommandBuffer();

0 commit comments

Comments
 (0)