1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-05-01 00:17:45 +00:00
physis/src/bcn/mod.rs
Joshua Goins 3da2aa39c1 Vendor what we need from texture2ddecoder
This recently tripped up cargo-deny because it depends on paste. I looked at it
and the parts that we need (a few BCn decoding functions) has only one place
where it's used and can easily be replaced.
2025-03-10 17:15:14 -04:00

18 lines
435 B
Rust

// SPDX-FileCopyrightText: 2023 Rudolf Kolbe
// SPDX-License-Identifier: MIT
extern crate alloc;
mod bc1;
mod bc3;
mod bc5;
mod color;
mod macros;
pub use bc1::decode_bc1_block;
pub use bc3::decode_bc3_block;
pub use bc5::decode_bc5_block;
macros::block_decoder!(decode_bc1, 4, 4, 8, decode_bc1_block);
macros::block_decoder!(decode_bc3, 4, 4, 16, decode_bc3_block);
macros::block_decoder!(decode_bc5, 4, 4, 16, decode_bc5_block);