mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Implement bytemuck behind a feature (#775)
This commit is contained in:
@@ -3,7 +3,10 @@ use crate::*;
|
||||
/// Linearly transforms positions from one [`Rect`] to another.
|
||||
///
|
||||
/// `RectTransform` stores the rectangles, and therefore supports clamping and culling.
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
|
||||
#[cfg_attr(feature = "bytemuck", derive(bytemuck::Pod, bytemuck::Zeroable))]
|
||||
pub struct RectTransform {
|
||||
from: Rect,
|
||||
to: Rect,
|
||||
|
||||
Reference in New Issue
Block a user