MATINFO(1)
okay bestie, sit down, hydrate, and let me tell you about matinfo β it lives in section 1 of the User Commands manual, so it's a user-facing command, not some dusty kernel thing. π
πΈ NAME πΈ
matinfo β filament material tools π§΅β¨
π DESCRIPTION π
matinfo prints information about material files compiled with matc. that's the whole vibe. it peeks inside your compiled material and tells you what's in there. π«Ά
Usage:
matinfo [options] <material file>
β¨ OPTIONS β¨
--help,-hβ prints this message. classic. the "help me bestie" button. π--print-glsl=[index],-gβ prints GLSL for the nth shader. and listen:0is the first OpenGL shader, so we count from zero around here, no cap. π₯--print-spirv=[index],-sβ validates and prints disasm for the nth shader.0is the first Vulkan shader. it checks it AND spills the tea in disasm form. π--print-metal=[index],-mβ prints Metal Shading Language for the nth shader, and yep,0is the first Metal shader. π--print-vkglsl=[index],-vβ prints the nth Vulkan shader, but transpiled into GLSL. it's giving translator era. π--print-dic-glslβ prints the GLSL dictionary. yes it's spelled "dic", we don't make the rules. π--print-dic-metalβ prints the Metal dictionary. π--print-dic-vkβ prints the Vulkan dictionary. π--web-server=[port],-wβ serves a web page at the given port (e.g.8080). main character energy, honestly. π--dump-binary=[index],-bβ dumps binary SPIRV for the nth Vulkan shader toout.spv. it literally writes that file, watch for it. πΎ--licenseβ prints copyright and license information. respect the elders. π--analyze-spirv=[index],-aβ prints annotated GLSL for the nth shader, and again,0is the first Vulkan shader. annotated!! it's like sparknotes but for shaders. β
π Usage: π
okay so. and THEN the page goes and says the entire thing over again, and I am not skipping it, because everything on this page matters. here we go, round two, same energy:
matinfo [options] <material file>
--help,-hβ prints this message. yes, again. consistency queen. π--print-glsl=[index],-gβ prints GLSL for the nth shader,0is the first OpenGL shader. π₯--print-spirv=[index],-sβ validates and prints disasm for the nth shader,0is the first Vulkan shader. π--print-metal=[index],-mβ prints Metal Shading Language for the nth shader,0is the first Metal shader. π--print-vkglsl=[index],-vβ prints the nth Vulkan shader transpiled into GLSL. π--print-dic-glslβ prints the GLSL dictionary. π--print-dic-metalβ prints the Metal dictionary. π--print-dic-vkβ prints the Vulkan dictionary. π--web-server=[port],-wβ serves a web page at the given port (e.g.8080). π--dump-binary=[index],-bβ dumps binary SPIRV for the nth Vulkan shader toout.spv. πΎ--licenseβ prints copyright and license information. π--analyze-spirv=[index],-aβ prints annotated GLSL for the nth shader,0is the first Vulkan shader. β
ngl bestie, every single index in this page is zero-based. if you pass 0 you get the first shader, and that is not a vibe check you want to fail. π«Ά
and that's the whole page, periodt. π¦ this one's dated October 2021, and it signs off as MATINFO(1) β so if you remember nothing else, remember the name and the manual section. mwah. ππβ¨
π¦ where this page comes from
- debian bookworm: libfilament-tools 1.9.25+dfsg2-10 Β· Apache-2.0
- debian trixie: libfilament-tools 1.9.25+dfsg3-1+b2 Β· Apache-2.0
- ubuntu jammy: libfilament-tools 1.9.25+dfsg2-4build1 Β· Apache-2.0
- ubuntu questing: libfilament-tools 1.9.25+dfsg3-1
- ubuntu resolute: libfilament-tools 1.9.25+dfsg3-3build2 Β· Apache-2.0
- ubuntu stonking: libfilament-tools 1.9.25+dfsg3-3build2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms