| 1 |
use crate::{Abgr, Argb, Bgr, Bgra, Grb, Rgb, Rgba}; |
| 2 |
use crate::formats::gray_a::GrayA; |
| 3 |
use crate::formats::gray_alpha::GrayAlpha_v08; |
| 4 |
use crate::formats::gray::Gray_v08; |
| 5 |
|
| 6 |
#[cfg(feature = "unstable-experimental")] |
| 7 |
use crate::formats::gray::Gray_v09; |
| 8 |
|
| 9 |
macro_rules! bytemuck { |
| 10 |
($name:ident) => { |
| 11 |
unsafe impl<T: ::bytemuck::Zeroable> ::bytemuck::Zeroable for $name<T> {} |
| 12 |
unsafe impl<T: ::bytemuck::Pod> ::bytemuck::Pod for $name<T> {} |
| 13 |
}; |
| 14 |
} |
| 15 |
|
| 16 |
bytemuck!(Rgb); |
| 17 |
bytemuck!(Bgr); |
| 18 |
bytemuck!(Grb); |
| 19 |
bytemuck!(Rgba); |
| 20 |
bytemuck!(Argb); |
| 21 |
bytemuck!(Bgra); |
| 22 |
bytemuck!(Abgr); |
| 23 |
bytemuck!(GrayA); |
| 24 |
|
| 25 |
bytemuck!(GrayAlpha_v08); |
| 26 |
bytemuck!(Gray_v08); |
| 27 |
|
| 28 |
#[cfg(feature = "unstable-experimental")] |
| 29 |
bytemuck!(Gray_v09); |