PyMaterialXGenShader.Shader¶
- class Shader¶
Bases:
pybind11_objectClass containing all data needed during shader generation.
After generation is completed it will contain the resulting source code emitted by shader generators.
The class contains a default implementation using a single shader stage. Derived shaders can override this, as well as overriding all methods that add code to the shader.
Methods
__init__(self, arg0, arg1)getAttribute(self, arg0)getName(self)getSourceCode(self, arg0)getStage(*args, **kwargs)Overloaded function.
hasAttribute(self, arg0)hasStage(self, arg0)numStages(self)setAttribute(*args, **kwargs)Overloaded function.
Methods¶
- getStage(*args, **kwargs)¶
Overloaded function.
getStage(self: PyMaterialXGenShader.Shader, arg0: int) -> MaterialX_v1_39_2::ShaderStage
getStage(self: PyMaterialXGenShader.Shader, arg0: str) -> MaterialX_v1_39_2::ShaderStage
- setAttribute(*args, **kwargs)¶
Overloaded function.
setAttribute(self: PyMaterialXGenShader.Shader, arg0: str) -> None
setAttribute(self: PyMaterialXGenShader.Shader, arg0: str, arg1: PyMaterialXCore.Value) -> None