filament icon indicating copy to clipboard operation
filament copied to clipboard

Added material name to createParser error logs

Open PatRibas opened this issue 11 months ago • 0 comments

Right now, failing to build a material because of the wrong backend version prints the error

in static std::unique_ptr<MaterialParser> filament::MaterialDefinition::createParser(const Backend, FixedCapacityVector<ShaderLanguage>, const void * _Nonnull, size_t):56
in file filament/filament/src/MaterialDefinition.cpp
reason: the material was not built for any of the OpenGL backend's supported shader languages (ESSL 1.0)

which is not super useful. If we instead print

reason: the material imp_default_gltf_materials/unlit_opaque_double_sided was not built for any of the OpenGL backend's supported shader languages (ESSL 1.0)

then we know which material causes the error, and what to fix.

PatRibas avatar Dec 11 '25 01:12 PatRibas