warrenm / KTX-Specification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Home of the KTX File Format Specification

Build Status

KTX is a file format that can be used for storing GPU-ready texture data (with cubemaps, mip levels, etc). Like DDS but with more features and more formal specification. glTF Compressed Texture Transmission Format (CTTF) uses a subset of KTX Version 2 that restricts some fields in the KTX2 header to make such files suitable for real-time transcoding.

Click to see the latest published version (it looks much better than the ersatz view provided by GitHub) or run

make

in a Unix-like environment with AsciiDoctor installed to generate the publishable spec. This is the single file out/index.html. Everything needed is inlined.

The canonical spec. text is in the file ktxspec.adoc.

$Date$ keyword expansion

A few auxiliary files have $Date$ keywords. If you care about having the proper dates shown on files in your workspace, you must follow the instructions below.

$Date$ keywords are expanded via a smudge & clean filter. To install the filter, issue the following commands in the root of your clone.

On Unix (Linux, Mac OS X, etc.) platforms and Windows using Git for Windows' Git Bash or Cygwin's bash terminal:

./install-gitconfig.sh
rm TODO.md
git checkout TODO.md

On Windows with the Command Prompt (requires git.exe in a directory on your %PATH%):

install-gitconfig.bat
del TODO.md
git checkout TODO.md

The first command adds an [include] of the repo's .gitconfig to the local git config file .git/config, i.e. the one in your clone of the repo. .gitconfig contains the config of the "dater" filter. The remaining commands force a new checkout of the affected files to smudge them with the date. These two are unnecessary if you plan to edit these files.

About


Languages

Language:CSS 81.5%Language:Ruby 7.5%Language:Shell 3.5%Language:HTML 3.0%Language:Batchfile 3.0%Language:Makefile 1.5%