Files
basis_universal/python/tests/test_basic_transcode.py
Richard Geldreich ea6778b2b5 adding new files
2026-01-19 01:59:35 -05:00

11 lines
214 B
Python

from basisu_py import Transcoder
with open("test.ktx2", "rb") as f:
data = f.read()
t = Transcoder() # AUTO backend
img = t.decode_rgba(data)
print("Decoded shape:", img.shape)
print("dtype:", img.dtype)