Updated to include and work with cpp header shaders
This commit is contained in:
parent
fccacd0058
commit
bb90806d79
9 changed files with 33 additions and 29 deletions
|
|
@ -1,15 +1,15 @@
|
|||
#ifndef OPMULT_CPP
|
||||
#define OPMULT_CPP
|
||||
|
||||
#include "Tensor.hpp"
|
||||
|
||||
#include "shaders/opmult.hpp"
|
||||
#include <shaders/opmult.hpp>
|
||||
|
||||
// Only defining hpp file for syntax validation in editors
|
||||
#ifndef OPMULT_H
|
||||
#ifndef OPMULT_HPP
|
||||
#include "OpMult.hpp"
|
||||
#endif
|
||||
|
||||
#ifndef OPMULT_CPP
|
||||
#define OPMULT_CPP
|
||||
|
||||
namespace kp {
|
||||
|
||||
|
|
@ -99,8 +99,8 @@ OpMult<tX, tY, tZ>::init(std::vector<std::shared_ptr<Tensor>> tensors)
|
|||
this->mCommandBuffer);
|
||||
|
||||
std::vector<char> shaderFileData(
|
||||
kp::shader_data::shaders_glsl_opmult_comp_spv_len,
|
||||
kp::shader_data::shaders_glsl_opmult_comp_spv + kp::shader_data::shaders_glsl_opmult_comp_spv_len);
|
||||
shader_data::shaders_glsl_opmult_comp_spv,
|
||||
shader_data::shaders_glsl_opmult_comp_spv + shader_data::shaders_glsl_opmult_comp_spv_len);
|
||||
this->mAlgorithm->init(shaderFileData, tensors);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue