PyMaterialXGenShader.Shader

class Shader

Bases: pybind11_object

Class 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.

See:

https://materialx.org/docs/api/class_shader.html

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

__init__(self: Shader, arg0: str, arg1: ShaderGraph) None
getAttribute(self: Shader, arg0: str) Value
getName(self: Shader) str
getSourceCode(self: Shader, arg0: str) str
getStage(*args, **kwargs)

Overloaded function.

  1. getStage(self: PyMaterialXGenShader.Shader, arg0: int) -> MaterialX_v1_39_2::ShaderStage

  2. getStage(self: PyMaterialXGenShader.Shader, arg0: str) -> MaterialX_v1_39_2::ShaderStage

hasAttribute(self: Shader, arg0: str) bool
hasStage(self: Shader, arg0: str) bool
numStages(self: Shader) int
setAttribute(*args, **kwargs)

Overloaded function.

  1. setAttribute(self: PyMaterialXGenShader.Shader, arg0: str) -> None

  2. setAttribute(self: PyMaterialXGenShader.Shader, arg0: str, arg1: PyMaterialXCore.Value) -> None