unityrs_texture/hdr.rs
1//! Errors shared by specification-defined HDR block decoders.
2
3/// A reserved or structurally illegal HDR encoding. These are content
4/// errors after a length-only plan succeeds; no partial image escapes.
5#[derive(Clone, Copy, Debug, PartialEq, Eq, thiserror::Error)]
6#[non_exhaustive]
7pub enum HdrError {
8 /// BC6H's four reserved mode codes.
9 #[error("reserved HDR block mode")]
10 ReservedMode,
11 /// An invalid ASTC mode, extent, endpoint budget or plane layout.
12 #[error("illegal HDR block encoding")]
13 InvalidBlock,
14}
15
16const _: () = crate::send_sync::<HdrError>();