mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-25 22:25:07 +00:00
20 lines
536 B
C++
20 lines
536 B
C++
//
|
|
// Copyright Contributors to the MaterialX Project
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
#include <PyMaterialX/PyMaterialX.h>
|
|
|
|
#include <MaterialXCore/Material.h>
|
|
#include <MaterialXCore/Look.h>
|
|
|
|
namespace py = pybind11;
|
|
namespace mx = MaterialX;
|
|
|
|
void bindPyMaterial(py::module& mod)
|
|
{
|
|
mod.def("getShaderNodes", &mx::getShaderNodes,
|
|
py::arg("materialNode"), py::arg("nodeType") = mx::SURFACE_SHADER_TYPE_STRING, py::arg("target") = mx::EMPTY_STRING);
|
|
mod.def("getConnectedOutputs", &mx::getConnectedOutputs);
|
|
}
|