TINT(1)

πŸ“¦ version 0.0~git20260724.1e897275, in ubuntu stonking

✨ 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 ✨

  • -f format, --format=format β€” pick your output format, bestie. one of: none, wgsl, ir, spirv, spvasm, glsl 🌈
  • -o file, --output-name=file β€” write the output to file instead of stdout. she's shy, let her write to a file πŸŽ€
  • -ep name, --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 πŸ’–


🧚 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