Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

SimVX Textures Basis

SimVX's native texture transcoder: basis_universal turns UASTC .ktx2 textures into the block format the GPU samples (BC7, ASTC 4x4 or ETC2). Most users want simvx, which includes it where a wheel exists.

Pre-alpha. SimVX publishes development releases only (0.0.0.devN) and is under active development; the API changes between builds. Once stable versions ship to PyPI, development builds continue on pypi.simvx.com.

Install

pip install --pre simvx                    # the whole engine (recommended)
pip install --pre simvx-textures-basis     # the transcoder alone; it needs only cffi

Latest development build: add --extra-index-url https://pypi.simvx.com/.

Use

Nothing to configure: simvx-graphics uses it to load a UASTC .ktx2 texture, and simvx cook uses it to transcode one ahead of shipping:

simvx cook hero.ktx2 -o cooked/

Without it loading a UASTC texture raises ValueError and simvx cook copies the file unchanged. Textures already in an explicit block format load without it.

Use it directly

The package needs nothing from the engine. Each function takes one mip level's packed UASTC blocks (16 bytes per 4x4 block) with its size in texels, and returns the transcoded blocks:

from simvx.textures.basis import is_available, transcode_uastc_to_bc7

uastc = bytes(16 * 4)  # one 8x8 level: four 4x4 blocks, here all zero
if is_available():
    bc7 = transcode_uastc_to_bc7(uastc, 8, 8)

transcode_uastc_to_astc4x4 and transcode_uastc_to_etc2 take the same arguments, behind astc_available() and etc2_available(). A level of the wrong size raises ValueError.

Platforms: wheels for Linux x86_64 and aarch64, Windows x86_64, and macOS x86_64 and arm64; only Linux x86_64 is tested. The library is loaded through cffi's ABI mode and the wheel is tagged py3-none-<platform>, so one wheel per platform serves every CPython 3.14 build, free-threaded included.

Documentation · Source · Licence: AGPL-3.0-or-later with Additional Terms, including the Game-Distribution Exception. Vendored: basis_universal (Apache-2.0).

Metadata

Release files for SimVX-Textures-Basis 0.0.0.dev3104

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SimVX-Textures-Basis 0.0.0.dev3104
File Size Uploaded
simvx_textures_basis-0.0.0.dev3104.tar.gz 792.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for SimVX-Textures-Basis 0.0.0.dev3104
File
simvx_textures_basis-0.0.0.dev3104-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
simvx_textures_basis-0.0.0.dev3104-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details
simvx_textures_basis-0.0.0.dev3104-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details
simvx_textures_basis-0.0.0.dev3104-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details
simvx_textures_basis-0.0.0.dev3104-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details
simvx_textures_basis-0.0.0.dev3104-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details
simvx_textures_basis-0.0.0.dev3104-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
simvx_textures_basis-0.0.0.dev3104-py3-none-android_24_arm64_v8a.whl Python 3 none Android API level 24+ ARM64 v8a Details

Total release size: 4.5 MB

Release files / simvx_textures_basis-0.0.0.dev3104.tar.gz

Download URL simvx_textures_basis-0.0.0.dev3104.tar.gz
Size 792.5 kB
Tags Source
SHA-256 checksum
How to use checksums
586d161d74f9f9caa7b3784e9e3fdc7c2ff6677aad7eed68521cf2c19d83f499
BLAKE2b-256 checksum
How to use checksums
4d9880aa66980e62665e7da26d171753d48b232daabaed0463572e39cde1e8c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / simvx_textures_basis-0.0.0.dev3104-py3-none-win_amd64.whl

Download URL simvx_textures_basis-0.0.0.dev3104-py3-none-win_amd64.whl
Size 550.4 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
9ce231614408428877c5e1a6ad29dc9f93b3e336093bfff0eb426d69670fbf23
BLAKE2b-256 checksum
How to use checksums
778f72f8cedfc3bdda247ed080561bc38fdaf01ddff71b0012e85e6bb2b120ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / simvx_textures_basis-0.0.0.dev3104-py3-none-musllinux_1_2_x86_64.whl

Download URL simvx_textures_basis-0.0.0.dev3104-py3-none-musllinux_1_2_x86_64.whl
Size 528.7 kB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
1caeaf1b6147150924d04ac528e05024fcaf64ed72e21024ae122c36f02888e5
BLAKE2b-256 checksum
How to use checksums
4879dcdee61bf1040ddd44eca72fb29fe6aec9c22a8f7f8cf6da23a04be205da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / simvx_textures_basis-0.0.0.dev3104-py3-none-musllinux_1_2_aarch64.whl

Download URL simvx_textures_basis-0.0.0.dev3104-py3-none-musllinux_1_2_aarch64.whl
Size 516.2 kB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
4f11ec0ff15ffec8f3a8962b7d5dfd308e8b40052bfb44703164d3890872e860
BLAKE2b-256 checksum
How to use checksums
ee8a9b350635d66ee0db60331cb805df128f2b73e1373fd31c9cec90cfe0e18d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / simvx_textures_basis-0.0.0.dev3104-py3-none-manylinux_2_28_x86_64.whl

Download URL simvx_textures_basis-0.0.0.dev3104-py3-none-manylinux_2_28_x86_64.whl
Size 529.1 kB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
8c65b79674d366cc550326c64935691346782126fde071bf415ca7f98be0907a
BLAKE2b-256 checksum
How to use checksums
4bb1f90250f907f0877045d507b4cf454c85889081a541b4f9eb9089ea42b1cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / simvx_textures_basis-0.0.0.dev3104-py3-none-manylinux_2_28_aarch64.whl

Download URL simvx_textures_basis-0.0.0.dev3104-py3-none-manylinux_2_28_aarch64.whl
Size 517.5 kB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
78cf8b8c6e7ce7bf52a80a03159ca0b54f0894e5d4be8fe48a1c97cecb073d80
BLAKE2b-256 checksum
How to use checksums
274ac75a315feb726b9dd77b483b2a3ab7c3e1486ba32ff4506265c998a46771
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / simvx_textures_basis-0.0.0.dev3104-py3-none-macosx_11_0_x86_64.whl

Download URL simvx_textures_basis-0.0.0.dev3104-py3-none-macosx_11_0_x86_64.whl
Size 257.9 kB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
6bff270d41148809a1cce971c10bf63ab09c27987ced68a776c506ba39105541
BLAKE2b-256 checksum
How to use checksums
09d11a0b3f674622fa8502a287ad6d57484af2552828971147a4c093323cff16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / simvx_textures_basis-0.0.0.dev3104-py3-none-macosx_11_0_arm64.whl

Download URL simvx_textures_basis-0.0.0.dev3104-py3-none-macosx_11_0_arm64.whl
Size 258.2 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
04eebb01fc6f502589e0ae29ebefd33b441490c5aa4c07aa417ac3db393cb17e
BLAKE2b-256 checksum
How to use checksums
496cca8c494c0f217e6248877574bcf1ed9db33a805026aa57ce9e7a34f900a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / simvx_textures_basis-0.0.0.dev3104-py3-none-android_24_arm64_v8a.whl

Download URL simvx_textures_basis-0.0.0.dev3104-py3-none-android_24_arm64_v8a.whl
Size 520.6 kB
Tags Android API level 24+ ARM64 v8a Python 3
SHA-256 checksum
How to use checksums
43883d097fc1001178da9d931c3e2902b1a339b85b8f8accc6c0f07483664216
BLAKE2b-256 checksum
How to use checksums
4ec928706a7f59691d8f66cddef2c5515a36eec818a49adb6ae4553f3aabb5ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page