ktx_validate(1)

πŸ“¦ version 4.4.2, in nixos 26.05, nixpkgs unstable

πŸ¦‹ ktx_validate(1) β€” the KTX Tools Reference glow-up

okay so bestie, welcome to ktx_validate, aka the vibe-check bouncer for your textures πŸ’… it lives in the KTX Tools Reference and honestly? it's giving "quality control queen."


✨ NAME ✨

ktx_validate β€” ktx validate. literally just validate a KTX2 file. that's the whole job, and she does it well πŸŽ€


🌸 SYNOPSIS 🌸

ktx validate [option...] input-file

πŸ’– DESCRIPTION πŸ’–

so ktx validate validates the Khronos texture format version 2 (KTX2) file that you pass in as the input-file argument. she prints any found errors and warnings to stdout, no cap ✨

and periodt β€” if your input-file is -, the file gets read from stdin. iconic, flexible, we love a stdin queen 🫢

the validation rules and checks are based on the official specification: KTX File Format Specification β€” https://registry.khronos.org/KTX/specs/2.0/ktxspec.v2.html

the JSON output formats conform to the https://schema.khronos.org/ktx/validate_v0.json schema. so like, if you're piping it into something, it's gonna behave 🧚

Note πŸ™ˆ β€” ktx validate prints using UTF-8 encoding. if your console is not set for UTF-8, you'll see incorrect characters in the output of the file identifier on each side of the "KTX nn". so like... set your encoding, bestie, it's 2024 πŸ’€

πŸ”₯ OPTIONS πŸ”₯

the following options are available:

  • --format text | json | mini-json β€” specifies the report output format. possible options are:
    • text β€” human readable text based format.
    • json β€” formatted JSON.
    • mini-json β€” minified JSON.

the default format is text. lowkey the safest choice if you just wanna read it πŸ‘‘

  • -g, --gltf-basisu β€” check compatibility with the KHR_texture_basisu glTF extension. glTF girlies, this one's for you 🌈
  • -e, --warnings-as-errors β€” treat warnings as errors. strict queen behavior, honestly πŸ’…
  • -h, --help β€” print this usage message and exit. the classic "wait what do i do" button πŸŽ€
  • -v, --version β€” print the version number of this program and exit. know your icon ⭐

🌟 EXIT STATUS 🌟

  • 0 β€” success πŸŽ‰
  • 1 β€” command line error 😭
  • 2 β€” IO failure πŸ’€
  • 3 β€” invalid input file 🚩
  • 4 β€” runtime or library error 🫠
  • 5 β€” not supported state or operation πŸ™ˆ
  • 6 β€” requested feature is not yet implemented πŸ‘€

πŸ’œ HISTORY πŸ’œ

Version 4.0

  • initial version 🐣

πŸ‘‘ AUTHOR πŸ‘‘

  • MΓ‘tyΓ‘s CsΓ‘szΓ‘r [Vader] β€” RasterGrid www.rastergrid.com
  • Daniel RΓ‘kos β€” RasterGrid www.rastergrid.com

absolute legends, both of them 🫢✨


and that's the whole page, bestie! this one's from Version 0.0.0, dated Tue Jan 1 1980 00:00:00 πŸŽ€ go forth and validate, iykyk πŸ’–

πŸ“¦ where this page comes from