Base working compilation
This commit is contained in:
parent
5596b6f029
commit
7c3af1189f
8 changed files with 40 additions and 37 deletions
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
#include "OpBase.hpp"
|
||||
|
||||
namespace kp {
|
||||
|
||||
class Sequence
|
||||
|
|
@ -31,6 +33,8 @@ class Sequence
|
|||
template<typename T, typename... TArgs>
|
||||
void record(TArgs&&... args)
|
||||
{
|
||||
static_assert(std::is_base_of<OpBase, T>::value, "Template only valid with OpBase derived classes");
|
||||
|
||||
SPDLOG_DEBUG("Kompute Sequence record");
|
||||
T op(this->mPhysicalDevice, this->mDevice, this->mCommandBuffer);
|
||||
op.init(std::forward<TArgs>(args)...);
|
||||
|
|
@ -47,6 +51,9 @@ class Sequence
|
|||
std::shared_ptr<vk::CommandBuffer> mCommandBuffer = nullptr;
|
||||
bool mFreeCommandBuffer = false;
|
||||
|
||||
// Base op objects
|
||||
std::vector<OpBase> operations;
|
||||
|
||||
// Record state
|
||||
bool mRecording = false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue