Skip to content

LiquidCrystalStudios/KTX-Software

This branch is 344 commits behind KhronosGroup/KTX-Software:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3e75b6a · May 25, 2021
May 18, 2021
May 17, 2021
Dec 23, 2020
May 19, 2021
May 20, 2021
Aug 19, 2020
Aug 19, 2020
Feb 6, 2021
Apr 4, 2021
May 19, 2021
May 25, 2021
Apr 27, 2021
Apr 17, 2021
Sep 16, 2020
May 19, 2021
May 19, 2021
May 13, 2021
Apr 20, 2021
Aug 19, 2020
Aug 19, 2020
Aug 19, 2020
May 25, 2021
May 7, 2021
May 19, 2021
May 25, 2021
Aug 19, 2020
May 17, 2021
Aug 19, 2020
Aug 19, 2020
Apr 27, 2018
May 12, 2021
Apr 20, 2021
Aug 19, 2020
Aug 19, 2020
Aug 19, 2020
Aug 19, 2020
Aug 19, 2020
Feb 6, 2021
Aug 19, 2020
Aug 19, 2020
Aug 19, 2020
Feb 6, 2021
Aug 19, 2020
Oct 25, 2020
Aug 20, 2020
Aug 19, 2020
Aug 19, 2020

Repository files navigation

The Official Khronos KTX Software Repository

GNU/Linux, iOS & OSX Windows Documentation
Build Status Build status Build status

This is the official home of the source code for the Khronos KTX library and tools.

KTX (Khronos Texture) is a lightweight container for textures for OpenGL®, Vulkan® and other GPU APIs. KTX files contain all the parameters needed for texture loading. A single file can contain anything from a simple base-level 2D texture through to a cubemap array texture with mipmaps. Contained textures can be in a Basis Universal format, in any of the block-compressed formats supported by OpenGL family and Vulkan APIs and extensions or in an uncompressed single-plane format. Basis Universal currently encompasses two formats that can be quickly transcoded to any GPU-supported format: LZ/ETC1S, which combines block-compression and supercompression, and UASTC, a block-compressed format. Formats other than LZ/ETC1S can be supercompressed with Zstd.

Download KTX Software Releases to get binary packages of the tools, library and development headers described below. The Releases page also has packages with the Javascript wrappers and .wasm binaries.

See the Doxygen generated live documentation for API and tool usage information.

The software consists of: (links are to source folders in the KhronosGroup repo)

  • libktx - a small library of functions for writing and reading KTX files, and instantiating OpenGL®, OpenGL ES™️ and Vulkan® textures from them. lib
  • libktx.{js,wasm} - Web assembly version of libktx and Javascript wrapper. interface/js_binding
  • msc_basis_transcoder.{js,wasm} - Web assembly transcoder and Javascript wrapper for Basis Universal formats. For use with KTX parsers written in Javascript. interface/js_binding
  • ktx2check - a tool for validating KTX Version 2 format files. tools/ktx2check
  • ktx2ktx2 - a tool for converting a KTX Version 1 file to a KTX Version 2 file. tools/ktx2ktx2
  • ktxinfo - a tool to display information about a KTX file in human readable form. tools/ktxinfo
  • ktxsc - a tool to supercompress a KTX Version 2 file that contains uncompressed images.tools/ktxsc
  • toktx - a tool to create KTX files from PNG, Netpbm or JPEG format images. It supports mipmap generation, encoding to Basis Universal formats and Zstd supercompression.tools/toktx

See CONTRIBUTING for information about contributing.

See LICENSE for information about licensing.

See BUILDING for information about building the code.

If you need help with using the KTX library or KTX tools, please use GitHub Discussions. To report problems use GitHub issues.

IMPORTANT: you must install the Git LFS command line extension in order to fully checkout this repository after cloning. You need at least version 1.1. If you did not have Git LFS installed at first checkout then, after installing it, you must run

git lfs checkout

A few files have $Date$ keywords. If you care about having the proper dates shown or will be generating the documentation or preparing distribution archives, you must follow the instructions below.

D a t e keyword expansion

D a t e 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 lib/mainpage.md pkgdoc/pages.md tools/toktx/toktx.cc
git checkout TODO.md lib/mainpage.md pkgdoc/pages.md tools/toktx/toktx.cc

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

install-gitconfig.bat
del TODO.md TODO.md lib\mainpage.md pkgdoc\pages.md tools\toktx\toktx.cc
git checkout TODO.md lib\mainpage.md pkgdoc\pages.md tools\toktx\toktx.cc

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 "keyworder" 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

KTX (Khronos Texture) Library and Tools

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 45.7%
  • C++ 43.2%
  • POV-Ray SDL 5.7%
  • JavaScript 1.9%
  • Python 1.3%
  • Objective-C 0.8%
  • Other 1.4%