Skip to main content

Module texture_transcode

Module texture_transcode 

Source
Expand description

Bounded zero-heap compressed texture transcode and block decode bridge. Bounded zero-heap compressed texture transcode and block decode bridge.

Structs§

TranscodedTextureInfo
Information describing a transcoded texture.

Enums§

CompressedBlockFormat
Supported compressed block formats.
TranscodeError
Errors returned by texture transcoding operations.
TranscodeTargetFormat
Target output format for texture transcoding.

Functions§

decode_astc_4x4_block
Decode a single 16-byte ASTC 4x4 LDR block (handles Void-Extent constant color blocks and 4x4 CEM endpoint + reversed weight-stream interpolation).
decode_bc1_block
Decode a single 8-byte BC1 block into 16 RGBA8 texels.
decode_bc3_block
Decode a single 16-byte BC3 block into 16 RGBA8 texels.
decode_bc7_block
Decode a single 16-byte BC7 block (full Khronos/D3D11 spec across all 8 modes, Modes 0..=7).
decode_compressed_image_to_rgba8
Decode a grid of compressed blocks into caller-provided RGBA8 destination.
decode_etc2_eac_rgba_block
Decode a single 16-byte ETC2 RGBA8 block (64-bit EAC alpha + 64-bit ETC1/ETC2 RGB).
transcode_ktx2_into
Transcode a KTX2 compressed texture container into caller-provided output buffers.