Ktx2Image

class Ktx2Image(val rgba: ByteArray, val width: Int, val height: Int)

Result of a successful Ktx2Decoder.decode call. RGBA8888 pixel buffer plus width and height — the rest of the texture pipeline (mipmap generation, GL upload) treats KTX2- sourced and non-KTX2-sourced images identically.

Constructors

Link copied to clipboard
constructor(rgba: ByteArray, width: Int, height: Int)

Properties

Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
val width: Int