Fixed bug by assigning pointer to heap instead of stack

This commit is contained in:
Alejandro Saucedo 2020-08-17 07:07:23 +01:00
parent 441efcd8dd
commit 81d592e6e0
8 changed files with 58 additions and 35 deletions

View file

@ -3,6 +3,13 @@
#include <vulkan/vulkan.h>
#include <vulkan/vulkan.hpp>
// SPDLOG_ACTIVE_LEVEL must be defined before spdlog.h import
#if DEBUG
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
#endif
#include <spdlog/spdlog.h>
namespace kp {
class Sequence
@ -21,6 +28,7 @@ public:
template <typename T, typename...TArgs>
void record(TArgs&&... args) {
SPDLOG_DEBUG("Kompute Sequence record");
T op(this->mCommandBuffer);
op.init(std::forward<TArgs>(args)...);
op.record();