15 lines
317 B
Rust
15 lines
317 B
Rust
use crate::primitive::{Color, PrimitiveData};
|
|
|
|
#[repr(C)]
|
|
#[derive(Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)]
|
|
pub struct RoundedRectData {
|
|
pub color: Color<u8>,
|
|
pub radius: f32,
|
|
pub thickness: f32,
|
|
pub inner_radius: f32,
|
|
}
|
|
|
|
impl PrimitiveData for RoundedRectData {
|
|
const DISCRIM: u32 = 0;
|
|
}
|