Added python functionality for shader compile
This commit is contained in:
parent
b9ca70b8b1
commit
f9c3feccfe
1 changed files with 1 additions and 2 deletions
|
|
@ -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<std::pair<std::string,std::string>>() )
|
||||
.def_static("compile_sources", &kp::Shader::compile_sources);
|
||||
py::arg("source"), py::arg("entryPoint") = "main", py::arg("definitions") = std::vector<std::pair<std::string,std::string>>() );
|
||||
|
||||
py::class_<kp::Tensor, std::shared_ptr<kp::Tensor>>(m, "Tensor", DOC(kp, Tensor))
|
||||
.def(py::init(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue