From f9c3feccfed362e4f4e8d86739e0dc461807daf0 Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Sat, 20 Feb 2021 19:34:49 +0000 Subject: [PATCH] Added python functionality for shader compile --- python/src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/src/main.cpp b/python/src/main.cpp index 7852b38..b79ca3e 100644 --- a/python/src/main.cpp +++ b/python/src/main.cpp @@ -40,8 +40,7 @@ PYBIND11_MODULE(kp, m) { return py::bytes((const char*)spirv.data(), spirv.size() * sizeof(uint32_t)); }, "Compiles string source provided and returns the value in bytes", - py::arg("source"), py::arg("entryPoint") = "main", py::arg("definitions") = std::vector>() ) - .def_static("compile_sources", &kp::Shader::compile_sources); + py::arg("source"), py::arg("entryPoint") = "main", py::arg("definitions") = std::vector>() ); py::class_>(m, "Tensor", DOC(kp, Tensor)) .def(py::init(