forked from AcademySoftwareFoundation/MaterialX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPyShaderPort.cpp
35 lines (31 loc) · 1.37 KB
/
PyShaderPort.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
// All rights reserved. See LICENSE.txt for license.
//
#include <PyMaterialX/PyMaterialX.h>
#include <MaterialXGenShader/ShaderNode.h>
namespace py = pybind11;
namespace mx = MaterialX;
void bindPyShaderPort(py::module& mod)
{
py::class_<mx::ShaderPort, mx::ShaderPortPtr>(mod, "ShaderPort")
.def("setType", &mx::ShaderPort::setType)
.def("getType", &mx::ShaderPort::getType)
.def("setName", &mx::ShaderPort::setName)
.def("getName", &mx::ShaderPort::getName)
.def("getFullName", &mx::ShaderPort::getFullName)
.def("setVariable", &mx::ShaderPort::setVariable)
.def("getVariable", &mx::ShaderPort::getVariable)
.def("setSemantic", &mx::ShaderPort::setSemantic)
.def("getSemantic", &mx::ShaderPort::getSemantic)
.def("setValue", &mx::ShaderPort::setValue)
.def("getValue", &mx::ShaderPort::getValue)
.def("setGeomProp", &mx::ShaderPort::setGeomProp)
.def("getGeomProp", &mx::ShaderPort::getGeomProp)
.def("setPath", &mx::ShaderPort::setPath)
.def("getPath", &mx::ShaderPort::getPath)
.def("setUnit", &mx::ShaderPort::setUnit)
.def("getUnit", &mx::ShaderPort::getUnit)
.def("isUniform", &mx::ShaderPort::isUniform)
.def("isEmitted", &mx::ShaderPort::isEmitted);
}