Kompute
OpBase.hpp
1 // SPDX-License-Identifier: Apache-2.0
2 #pragma once
3 
4 #include "kompute/Algorithm.hpp"
5 #include "kompute/Core.hpp"
6 #include "kompute/Tensor.hpp"
7 
8 namespace kp {
9 
18 class OpBase
19 {
20  public:
26  virtual ~OpBase() { KP_LOG_DEBUG("Kompute OpBase destructor started"); }
27 
35  virtual void record(const vk::CommandBuffer& commandBuffer) = 0;
36 
47  virtual void preEval(const vk::CommandBuffer& commandBuffer) = 0;
48 
59  virtual void postEval(const vk::CommandBuffer& commandBuffer) = 0;
60 };
61 
62 } // End namespace kp
Definition: OpBase.hpp:19
virtual void preEval(const vk::CommandBuffer &commandBuffer)=0
virtual void record(const vk::CommandBuffer &commandBuffer)=0
virtual ~OpBase()
Definition: OpBase.hpp:26
virtual void postEval(const vk::CommandBuffer &commandBuffer)=0