Skip to content
Languages / GPU texture codecs (KTX2, Basis, Draco)

GPU texture codecs (KTX2, Basis, Draco)

How Atracode compiles GPU texture codecs (KTX2, Basis, Draco), what it is verified against, and what it refuses.

Kind
Graphics and 3D
Verified against
Reference encoders and decoders
Published results
Per release, in the changelog

What is supported

Texture and mesh compression decoded bit for bit, so every device sees the same data.

Meshes and textures decoded exactly, so every device sees the same data.

How it is verified

GPU texture codecs (KTX2, Basis, Draco) isn't only compiled: Atracode stands in for the engine or library that would normally run it, and every result is checked against Reference encoders and decoders. Outputs must match exactly, and the result gets a behavior hash like any other program.

$ atracode compile main.src
verified  raven:3f1c…  (illustrative)

What gets refused

Anything that depends on the world outside the program, such as the clock, the network, environment variables or unseeded randomness, is refused at its exact line and column instead of being approximated. Pass those values in as inputs and compile again. Refusals lists the common causes and fixes.

esc

Type to search titles, headings and text.