Moved shader compile logic to main libary
This commit is contained in:
parent
f713b56862
commit
9a19e3b280
13 changed files with 197 additions and 91 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue