make ARGBu8x4 and ARGBf32x4 derive Default
This commit is contained in:
parent
d12d7035ca
commit
0eac3ad7a3
|
@ -561,7 +561,7 @@ pub trait ColorsAsBytes {
|
||||||
|
|
||||||
/// Unpacked 32-bit color represented as individual 8-bit color components where the components are in the
|
/// Unpacked 32-bit color represented as individual 8-bit color components where the components are in the
|
||||||
/// order alpha, red, green, blue.
|
/// order alpha, red, green, blue.
|
||||||
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
|
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Default)]
|
||||||
#[repr(transparent)]
|
#[repr(transparent)]
|
||||||
pub struct ARGBu8x4(pub simd::u8x4);
|
pub struct ARGBu8x4(pub simd::u8x4);
|
||||||
|
|
||||||
|
@ -758,7 +758,7 @@ impl ColorsAsBytes for [ARGBu8x4] {
|
||||||
|
|
||||||
/// Unpacked 32-bit color represented as individual normalized f32 color components (0.0 to 1.0) where the
|
/// Unpacked 32-bit color represented as individual normalized f32 color components (0.0 to 1.0) where the
|
||||||
/// components are in the order alpha, red, green, blue.
|
/// components are in the order alpha, red, green, blue.
|
||||||
#[derive(Debug, Copy, Clone, PartialEq, PartialOrd)]
|
#[derive(Debug, Copy, Clone, PartialEq, PartialOrd, Default)]
|
||||||
#[repr(transparent)]
|
#[repr(transparent)]
|
||||||
pub struct ARGBf32x4(pub simd::f32x4);
|
pub struct ARGBf32x4(pub simd::f32x4);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue