Renamed baseoperation for baseop
This commit is contained in:
parent
1ddd9f2bc4
commit
52ec836de8
4 changed files with 47 additions and 47 deletions
38
src/BaseOp.cpp
Normal file
38
src/BaseOp.cpp
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
|
||||
// SPDLOG_ACTIVE_LEVEL must be defined before spdlog.h import
|
||||
#if DEBUG
|
||||
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
|
||||
#endif
|
||||
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
#include "BaseOp.hpp"
|
||||
|
||||
namespace kp {
|
||||
|
||||
BaseOp::BaseOp() {
|
||||
|
||||
}
|
||||
|
||||
BaseOp::BaseOp(std::shared_ptr<vk::CommandBuffer> commandBuffer) {
|
||||
SPDLOG_DEBUG("Compute BaseOp constructor started");
|
||||
this->mCommandBuffer = commandBuffer;
|
||||
}
|
||||
|
||||
BaseOp::~BaseOp() {
|
||||
SPDLOG_DEBUG("Compute BaseOp destructor started");
|
||||
|
||||
}
|
||||
|
||||
void BaseOp::init(std::string one, std::string two) {
|
||||
SPDLOG_DEBUG("Compute BaseOp init started");
|
||||
|
||||
}
|
||||
|
||||
void BaseOp::record() {
|
||||
SPDLOG_DEBUG("Compute BaseOp record started");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -7,15 +7,15 @@
|
|||
|
||||
namespace kp {
|
||||
|
||||
class BaseOperator
|
||||
class BaseOp
|
||||
{
|
||||
private:
|
||||
|
||||
|
||||
public:
|
||||
BaseOperator();
|
||||
BaseOperator(std::shared_ptr<vk::CommandBuffer> commandBuffer);
|
||||
virtual ~BaseOperator();
|
||||
BaseOp();
|
||||
BaseOp(std::shared_ptr<vk::CommandBuffer> commandBuffer);
|
||||
virtual ~BaseOp();
|
||||
|
||||
void init(std::string one, std::string two);
|
||||
void record();
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
|
||||
// SPDLOG_ACTIVE_LEVEL must be defined before spdlog.h import
|
||||
#if DEBUG
|
||||
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
|
||||
#endif
|
||||
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
#include "BaseOperator.hpp"
|
||||
|
||||
namespace kp {
|
||||
|
||||
BaseOperator::BaseOperator() {
|
||||
|
||||
}
|
||||
|
||||
BaseOperator::BaseOperator(std::shared_ptr<vk::CommandBuffer> commandBuffer) {
|
||||
SPDLOG_DEBUG("Compute BaseOperator constructor started");
|
||||
this->mCommandBuffer = commandBuffer;
|
||||
}
|
||||
|
||||
BaseOperator::~BaseOperator() {
|
||||
SPDLOG_DEBUG("Compute BaseOperator destructor started");
|
||||
|
||||
}
|
||||
|
||||
void BaseOperator::init(std::string one, std::string two) {
|
||||
SPDLOG_DEBUG("Compute BaseOperator init started");
|
||||
|
||||
}
|
||||
|
||||
void BaseOperator::record() {
|
||||
SPDLOG_DEBUG("Compute BaseOperator record started");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
10
src/main.cpp
10
src/main.cpp
|
|
@ -21,7 +21,7 @@
|
|||
#include <vulkan/vulkan.hpp>
|
||||
|
||||
#include "Manager.hpp"
|
||||
#include "BaseOperator.hpp"
|
||||
#include "BaseOp.hpp"
|
||||
|
||||
#define BUFFER_ELEMENTS 32
|
||||
|
||||
|
|
@ -612,15 +612,15 @@ main()
|
|||
#endif
|
||||
|
||||
try {
|
||||
VulkanCompute* vulkanExample = new VulkanCompute();
|
||||
spdlog::info("Finished.");
|
||||
delete (vulkanExample);
|
||||
//VulkanCompute* vulkanExample = new VulkanCompute();
|
||||
//spdlog::info("Finished.");
|
||||
//delete (vulkanExample);
|
||||
|
||||
// Run Kompute
|
||||
spdlog::info("Creating manager");
|
||||
kp::Manager mgr;
|
||||
spdlog::info("Calling manager eval");
|
||||
mgr.eval<kp::BaseOperator>("one", "two");
|
||||
mgr.eval<kp::BaseOp>("one", "two");
|
||||
spdlog::info("Called manager eval success");
|
||||
return 0;
|
||||
} catch (const std::exception& exc) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue