init(materialXLabel:data:)
Loads a ShaderGraphMaterial from MaterialX data.
Declaration
init(materialXLabel: String, data: Data) async throwsParameters
- 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.