Decouple Mesh primitives from main Primitive type
This commit is contained in:
parent
2128472c2a
commit
fa5650cfd1
15 changed files with 248 additions and 205 deletions
|
|
@ -7,6 +7,7 @@ use crate::color;
|
|||
use crate::core::gradient::ColorStop;
|
||||
use crate::core::{self, Color, Point, Rectangle};
|
||||
|
||||
use bytemuck::{Pod, Zeroable};
|
||||
use half::f16;
|
||||
use std::cmp::Ordering;
|
||||
|
||||
|
|
@ -135,7 +136,7 @@ impl Linear {
|
|||
}
|
||||
|
||||
/// Packed [`Gradient`] data for use in shader code.
|
||||
#[derive(Debug, Copy, Clone, PartialEq)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Zeroable, Pod)]
|
||||
#[repr(C)]
|
||||
pub struct Packed {
|
||||
// 8 colors, each channel = 16 bit float, 2 colors packed into 1 u32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue