From 7e5317fdc010a5fed36be7760b3b4c07be402469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hatvani=20Tam=C3=A1s?= Date: Fri, 10 Apr 2026 10:56:48 +0200 Subject: [PATCH] Revert "deleted getlayers function" This reverts commit 0dbb8bc6429a2b47da26699a1d12a9c0555bc9f4. --- SakuraCore/src/LayerStack.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SakuraCore/src/LayerStack.h b/SakuraCore/src/LayerStack.h index e1c0ec3..9ee7f39 100644 --- a/SakuraCore/src/LayerStack.h +++ b/SakuraCore/src/LayerStack.h @@ -37,6 +37,10 @@ public: void SubmitCommand(LayerCommand command); void ProcessCommands(); +#ifdef DEBUG + // this is only used for the tests for now, so it will be taken out of the release build + inline const std::vector> &GetLayers() const { return m_LayerStack; } +#endif private: std::vector m_CommandQueue; std::vector> m_LayerStack;