Moved shader compile logic to main libary

This commit is contained in:
Alejandro Saucedo 2021-02-20 16:48:56 +00:00
parent f713b56862
commit 9a19e3b280
13 changed files with 197 additions and 91 deletions

View file

@ -1,10 +1,7 @@
#include "gtest/gtest.h"
#include "kompute/Kompute.hpp"
#include "TestUtils.cpp"
TEST(TestSpecializationConstants, TestTwoConstants)
{
std::shared_ptr<kp::Tensor> tensorA{ new kp::Tensor({ 0, 0, 0 }) };
@ -38,7 +35,7 @@ TEST(TestSpecializationConstants, TestTwoConstants)
sq->begin();
sq->record<kp::OpAlgoBase>(
{ tensorA, tensorB },
spirv_from_string(shader),
kp::spirv_from_source(shader),
kp::Workgroup(), spec);
sq->end();