Skip to content

Commit

Permalink
Docstrings for PyMaterialXGenMdl. (#1567)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Habel <19556655+StefanHabel@users.noreply.github.com>
  • Loading branch information
StefanHabel committed Oct 31, 2023
1 parent 40079f1 commit dfa106a
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions source/PyMaterialX/PyMaterialXGenMdl/PyMdlShaderGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,22 @@ namespace mx = MaterialX;
void bindPyMdlShaderGenerator(py::module& mod)
{
py::class_<mx::MdlShaderGenerator, mx::ShaderGenerator, mx::MdlShaderGeneratorPtr>(mod, "MdlShaderGenerator")
.def_static("create", &mx::MdlShaderGenerator::create)
.def(py::init<>())
.def("getTarget", &mx::MdlShaderGenerator::getTarget)

.def_static("create", &mx::MdlShaderGenerator::create,
PYMATERIALX_DOCSTRING(R"docstring(
Create an instance of this class.
)docstring"))

.def(py::init<>(),
PYMATERIALX_DOCSTRING(R"docstring(
Initialize an instance of this class.
)docstring"))

.def("getTarget", &mx::MdlShaderGenerator::getTarget,
PYMATERIALX_DOCSTRING(R"docstring(
Return a unique identifier for the target this generator is for.
)docstring"))

.doc() = PYMATERIALX_DOCSTRING(R"docstring(
Class implementing a shader generator for MDL (Material Definition Language).
Expand Down

0 comments on commit dfa106a

Please sign in to comment.