Skip to main content

decode_bc6h_block

Function decode_bc6h_block 

Source
pub fn decode_bc6h_block(
    data: &[u8; 16],
    signed: bool,
) -> Result<[[u16; 3]; 16], HdrError>
Expand description

Decode one BC6H block to row-major binary16 RGB bit patterns, using Khronos Data Format Specification 1.3 section 20.2. Reserved modes are refused. signed selects the signed encoding, including negative zero.