TINT(1)
β¨ TINT(1) β¨
okay bestie, welcome to tint β the compiler for the WebGPU Shader Language (WGSL) π
this is the User Commands girlie and she is, lowkey, carrying your whole shader pipeline on her back π«Ά
πΈ NAME πΈ
tint β compiler for the WebGPU Shader Language (WGSL) β¨
π SYNOPSIS π
tint [options] input-file
like. that's it. that's the whole vibe. one input file, some options, and she works π
π DESCRIPTION π
so tint compiles and validates shaders written in the WebGPU Shader Language (WGSL). she can convert WGSL to SPIR-V, GLSL, or WGSL, and β plot twist β she also accepts SPIR-V as input. versatile queen π
by default, the output format is inferred from the output filename extension. no cap, she just looks at it. π
and if you don't specify an output file at all? she writes SPIR-V assembly (spvasm) straight to stdout. periodt. π«
β¨ OPTIONS β¨
-fformat,--format=format β pick your output format, bestie. one of:none,wgsl,ir,spirv,spvasm,glslπ-ofile,--output-name=file β write the output to file instead ofstdout. she's shy, let her write to a file π-epname,--entry-point=name β output only the specified entry point. just the one. the main character π--validateβ validate the generated shader with all available validators. all of them. she's thorough fr fr β--dump-irβ dump the IR at each stage of the compilation flow. it's giving β¨behind the scenesβ¨--parse-onlyβ stop after parsing the input (useful for validation only). she reads it, she understands it, she does not go further π-h,--helpβ show usage information. the classic. the icon. the moment. π
π¦ EXAMPLES π¦
validate a WGSL shader:
tint shader.wgsl
compile WGSL to SPIR-V binary:
tint shader.wgsl -o shader.spv
compile WGSL to GLSL:
tint --format glsl shader.wgsl
compile SPIR-V to WGSL:
tint shader.spv --format wgsl
not her going both directions, we love a bilingual queen ππ
π SEE ALSO π
tint_info(1)β her sister, also iconic π«Ά
π§ HOMEPAGE π§
https://dawn.googlesource.com/dawn πΈ
bestie if you got this far, go compile something. i believe in you fr fr π
okay that's the whole page, mwah ππ this was Dawn, dated 2026-04-17, and yes this is TINT(1) signing off β slay, stay validated, don't skip the --validate β¨
π¦ where this page comes from
- ubuntu stonking: tint-tools 0.0~git20260724.1e897275-4 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms