unityrs-texture 1.0.0

Texture2D decoders with UnityPy 1.25.2's output: the formats it decodes with Pillow's raw and bcn decoders, the ETC and EAC formats, and the ASTC LDR formats.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Errors shared by specification-defined HDR block decoders.

/// A reserved or structurally illegal HDR encoding. These are content
/// errors after a length-only plan succeeds; no partial image escapes.
#[derive(Clone, Copy, Debug, PartialEq, Eq, thiserror::Error)]
#[non_exhaustive]
pub enum HdrError {
    /// BC6H's four reserved mode codes.
    #[error("reserved HDR block mode")]
    ReservedMode,
    /// An invalid ASTC mode, extent, endpoint budget or plane layout.
    #[error("illegal HDR block encoding")]
    InvalidBlock,
}

const _: () = crate::send_sync::<HdrError>();