forked from AcademySoftwareFoundation/MaterialX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding docstrings for PyMaterialXRender*.
This PR adds docstrings in markdown format to the following modules: - `PyMaterialXRender` - `PyMaterialXRenderGlsl` - `PyMaterialXRenderMsl` - `PyMaterialXRenderOsl` The docstrings are defined in macros named `PyMaterialXRender*_DOCSTRING` that use the new `PYMATERIALX_DOCSTRING` macro that is introduced in AcademySoftwareFoundation#2038 to allow us to place the first and last lines in lines by themselves, rather than starting the docstring contents immediately after the `R"docstring(` marker. The `PyMaterialXRender*_DOCSTRING` macros are placed in separate header files named `__doc__.md.h` which live side-by-side with their corresponding `PyModule.cpp` files in which they are included. Note that the docstrings for individual classes, methods, and functions are to be added in separate PRs. Split from AcademySoftwareFoundation#1567. Depends on AcademySoftwareFoundation#2038. Update AcademySoftwareFoundation#342. Signed-off-by: Stefan Habel <[email protected]>
- Loading branch information
1 parent
76bef70
commit e42a810
Showing
8 changed files
with
176 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// | ||
// Copyright Contributors to the MaterialX Project | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
// Docstring for the PyMaterialXRender module | ||
|
||
#define PyMaterialXRender_DOCSTRING PYMATERIALX_DOCSTRING(R"docstring( | ||
Core rendering support for MaterialX. | ||
|
||
Core Rendering Classes | ||
---------------------- | ||
|
||
.. autosummary:: | ||
:toctree: core-rendering | ||
|
||
ShaderRenderer | ||
Camera | ||
LightHandler | ||
|
||
Geometry Classes | ||
---------------- | ||
|
||
.. autosummary:: | ||
:toctree: geometry | ||
|
||
GeometryHandler | ||
GeometryLoader | ||
CgltfLoader | ||
TinyObjLoader | ||
Mesh | ||
MeshPartition | ||
MeshStream | ||
|
||
Image Classes | ||
-------------- | ||
|
||
.. autosummary:: | ||
:toctree: images | ||
|
||
ImageHandler | ||
ImageLoader | ||
StbImageLoader | ||
Image | ||
ImageBufferDeallocator | ||
ImageSamplingProperties | ||
|
||
Image Functions | ||
--------------- | ||
|
||
.. autofunction:: createImageStrip | ||
.. autofunction:: createUniformImage | ||
.. autofunction:: getMaxDimensions | ||
|
||
Enumeration Classes | ||
------------------- | ||
|
||
.. autosummary:: | ||
:toctree: enumerations | ||
|
||
BaseType | ||
|
||
Exception Classes | ||
----------------- | ||
|
||
.. autosummary:: | ||
:toctree: exceptions | ||
|
||
ExceptionRenderError | ||
)docstring"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// Copyright Contributors to the MaterialX Project | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
// Docstring for the PyMaterialXRenderGlsl module | ||
|
||
#define PyMaterialXRenderGlsl_DOCSTRING PYMATERIALX_DOCSTRING(R"docstring( | ||
Rendering materials using the OpenGL Shading Language. | ||
|
||
:see: https://www.opengl.org | ||
:see: https://www.vulkan.org | ||
|
||
GLSL Rendering Classes | ||
---------------------- | ||
|
||
**Class Hierarchy** | ||
|
||
* `PyMaterialXRender.ShaderRenderer` | ||
* `GlslRenderer` | ||
* `TextureBaker` | ||
* `PyMaterialXRender.ImageHandler` | ||
* `GLTextureHandler` | ||
|
||
**Class Index** | ||
|
||
.. autosummary:: | ||
:toctree: glsl-rendering | ||
|
||
GlslRenderer | ||
GlslProgram | ||
GLTextureHandler | ||
Input | ||
TextureBaker | ||
)docstring"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// Copyright Contributors to the MaterialX Project | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
// Docstring for the PyMaterialXRenderMsl module | ||
|
||
#define PyMaterialXRenderMsl_DOCSTRING PYMATERIALX_DOCSTRING(R"docstring( | ||
Rendering materials using the Metal Shading Language. | ||
|
||
:see: https://developer.apple.com/metal/ | ||
:see: https://developer.apple.com/documentation/metal | ||
|
||
Metal Rendering Classes | ||
----------------------- | ||
|
||
**Class Hierarchy** | ||
|
||
* `PyMaterialXRender.ShaderRenderer` | ||
* `MslRenderer` | ||
* `TextureBaker` | ||
* `PyMaterialXRender.ImageHandler` | ||
* `MetalTextureHandler` | ||
|
||
**Class Index** | ||
|
||
.. autosummary:: | ||
:toctree: metal-rendering | ||
|
||
MslRenderer | ||
MslProgram | ||
MetalTextureHandler | ||
Input | ||
TextureBaker | ||
)docstring"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// Copyright Contributors to the MaterialX Project | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
// Docstring for the PyMaterialXRenderOsl module | ||
|
||
#define PyMaterialXRenderOsl_DOCSTRING PYMATERIALX_DOCSTRING(R"docstring( | ||
Rendering materials using the Open Shading Language. | ||
|
||
:see: https://openshadinglanguage.org/ | ||
:see: https://open-shading-language.readthedocs.io/ | ||
|
||
OSL Rendering Classes | ||
--------------------- | ||
|
||
**Class Hierarchy** | ||
|
||
* `PyMaterialXRender.ShaderRenderer` | ||
* `OslRenderer` | ||
|
||
**Class Index** | ||
|
||
.. autosummary:: | ||
:toctree: osl-rendering | ||
|
||
OslRenderer | ||
)docstring"); |