Skip to content

Commit

Permalink
Improvements to PyMaterialX docstrings (AcademySoftwareFoundation#2039)
Browse files Browse the repository at this point in the history
This PR tweaks the docstrings of all PyMaterialX* modules to be more descriptive.
  • Loading branch information
StefanHabel authored Oct 3, 2024
1 parent 860b8d4 commit a11792a
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion source/PyMaterialX/PyMaterialXCore/PyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void bindPyVariant(py::module& mod);

PYBIND11_MODULE(PyMaterialXCore, mod)
{
mod.doc() = "Module containing Python bindings for the MaterialXCore library";
mod.doc() = "Core MaterialX elements and graph traversal.";

bindPyElement(mod);
bindPyTraversal(mod);
Expand Down
2 changes: 1 addition & 1 deletion source/PyMaterialX/PyMaterialXFormat/PyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void bindPyUtil(py::module& mod);

PYBIND11_MODULE(PyMaterialXFormat, mod)
{
mod.doc() = "Module containing Python bindings for the MaterialXFormat library";
mod.doc() = "Cross-platform support for document serialization and file utilities.";

// PyMaterialXFormat depends on types defined in PyMaterialXCore
PYMATERIALX_IMPORT_MODULE(PyMaterialXCore);
Expand Down
2 changes: 1 addition & 1 deletion source/PyMaterialX/PyMaterialXGenGlsl/PyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void bindPyVkShaderGenerator(py::module& mod);

PYBIND11_MODULE(PyMaterialXGenGlsl, mod)
{
mod.doc() = "Module containing Python bindings for the MaterialXGenGlsl library";
mod.doc() = "Shader generation using the OpenGL Shading Language.";

// PyMaterialXGenGlsl depends on types defined in PyMaterialXGenShader
PYMATERIALX_IMPORT_MODULE(PyMaterialXGenShader);
Expand Down
2 changes: 1 addition & 1 deletion source/PyMaterialX/PyMaterialXGenMdl/PyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void bindPyMdlShaderGenerator(py::module& mod);

PYBIND11_MODULE(PyMaterialXGenMdl, mod)
{
mod.doc() = "Module containing Python bindings for the MaterialXGenMdl library";
mod.doc() = "Shader generation using the Material Definition Language.";

// PyMaterialXGenMdl depends on types defined in PyMaterialXGenShader
PYMATERIALX_IMPORT_MODULE(PyMaterialXGenShader);
Expand Down
2 changes: 1 addition & 1 deletion source/PyMaterialX/PyMaterialXGenMsl/PyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void bindPyMslResourceBindingContext(py::module &mod);

PYBIND11_MODULE(PyMaterialXGenMsl, mod)
{
mod.doc() = "Module containing Python bindings for the MaterialXGenMsl library";
mod.doc() = "Shader generation using the Metal Shading Language.";

// PyMaterialXGenMsl depends on types defined in PyMaterialXGenShader
PYMATERIALX_IMPORT_MODULE(PyMaterialXGenShader);
Expand Down
2 changes: 1 addition & 1 deletion source/PyMaterialX/PyMaterialXGenOsl/PyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void bindPyOslShaderGenerator(py::module& mod);

PYBIND11_MODULE(PyMaterialXGenOsl, mod)
{
mod.doc() = "Module containing Python bindings for the MaterialXGenOsl library";
mod.doc() = "Shader generation using Open Shading Language.";

// PyMaterialXGenOsl depends on types defined in PyMaterialXGenShader
PYMATERIALX_IMPORT_MODULE(PyMaterialXGenShader);
Expand Down
2 changes: 1 addition & 1 deletion source/PyMaterialX/PyMaterialXGenShader/PyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void bindPyUnitSystem(py::module& mod);

PYBIND11_MODULE(PyMaterialXGenShader, mod)
{
mod.doc() = "Module containing Python bindings for the MaterialXGenShader library";
mod.doc() = "Core shader generation support for MaterialX.";

bindPyColorManagement(mod);
bindPyShaderPort(mod);
Expand Down
2 changes: 1 addition & 1 deletion source/PyMaterialX/PyMaterialXRender/PyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void bindPyCgltfLoader(py::module& mod);

PYBIND11_MODULE(PyMaterialXRender, mod)
{
mod.doc() = "Module containing Python bindings for the MaterialXRender library";
mod.doc() = "Core rendering support for MaterialX.";

// PyMaterialXRender depends on types defined in PyMaterialXCore
PYMATERIALX_IMPORT_MODULE(PyMaterialXCore);
Expand Down
2 changes: 1 addition & 1 deletion source/PyMaterialX/PyMaterialXRenderGlsl/PyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void bindPyTextureBaker(py::module& mod);

PYBIND11_MODULE(PyMaterialXRenderGlsl, mod)
{
mod.doc() = "Module containing Python bindings for the MaterialXRenderGlsl library";
mod.doc() = "Rendering support for the OpenGL Shading Language.";

// PyMaterialXRenderGlsl depends on types defined in PyMaterialXRender
PYMATERIALX_IMPORT_MODULE(PyMaterialXRender);
Expand Down
2 changes: 1 addition & 1 deletion source/PyMaterialX/PyMaterialXRenderMsl/PyModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

PYBIND11_MODULE(PyMaterialXRenderMsl, mod)
{
mod.doc() = "Module containing Python bindings for the MaterialXRenderMsl library";
mod.doc() = "Rendering support for the Metal Shading Language.";

// PyMaterialXRenderMsl depends on types defined in PyMaterialXRender
PYMATERIALX_IMPORT_MODULE(PyMaterialXRender);
Expand Down
2 changes: 1 addition & 1 deletion source/PyMaterialX/PyMaterialXRenderOsl/PyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void bindPyOslRenderer(py::module& mod);

PYBIND11_MODULE(PyMaterialXRenderOsl, mod)
{
mod.doc() = "Module containing Python bindings for the MaterialXRenderOsl library";
mod.doc() = "Rendering support for Open Shading Language.";

// PyMaterialXRenderOsl depends on types defined in PyMaterialXRender
PYMATERIALX_IMPORT_MODULE(PyMaterialXRender);
Expand Down

0 comments on commit a11792a

Please sign in to comment.