Contents

init(materialXLabel:data:)

Loads a ShaderGraphMaterial from MaterialX data.

Declaration

init(materialXLabel: String, data: Data) async throws

Parameters

  • materialXLabel:

    The name of the ShaderGraphMaterial in the MaterialX data.

  • data:

    The data containing the MaterialX file contents.

Return Value

A ShaderGraphMaterial object from the data with the label specified.