PyMaterialXGenShader.GenContext

class GenContext

Bases: pybind11_object

A context class for shader generation.

Used for thread local storage of data needed during shader generation.

See:

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

Methods

__init__(self, arg0)

getApplicationVariableHandler(self)

getOptions(self)

getShaderGenerator(self)

pushUserData(self, arg0, arg1)

registerSourceCodeSearchPath(*args, **kwargs)

Overloaded function.

resolveSourceFile(self, arg0, arg1)

setApplicationVariableHandler(self, arg0)

Methods

__init__(self: GenContext, arg0: ShaderGenerator) None
getApplicationVariableHandler(self: GenContext) Callable[[ShaderNode, GenContext], None]
getOptions(self: GenContext) GenOptions
getShaderGenerator(self: GenContext) ShaderGenerator
pushUserData(self: GenContext, arg0: str, arg1: GenUserData) None
registerSourceCodeSearchPath(*args, **kwargs)

Overloaded function.

  1. registerSourceCodeSearchPath(self: PyMaterialXGenShader.GenContext, arg0: PyMaterialXFormat.FilePath) -> None

  2. registerSourceCodeSearchPath(self: PyMaterialXGenShader.GenContext, arg0: PyMaterialXFormat.FileSearchPath) -> None

resolveSourceFile(self: GenContext, arg0: FilePath, arg1: FilePath) FilePath
setApplicationVariableHandler(self: GenContext, arg0: Callable[[ShaderNode, GenContext], None]) None