Skip to main content

Function: inspectMaterialX()

inspectMaterialX(raw, fileName, options?): Promise<MaterialXInspection>

Inspects XML or ZIP bytes using all validation rules. A host reader enables recursive loose dependency checks without mutating source bytes; archives use their own inventory. Reader failures are collected so one missing file does not hide other issues. The host must bound each read; this function also bounds dependency count and total retained bytes.

Parameters​

raw​

Uint8Array

fileName​

string

options?​

readResource?​

ResourceReader

supportedCategories?​

readonly string[]

Returns​

Promise<MaterialXInspection>