mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 04:08:11 +08:00
Refactor to generalize pipeline drawing sequence
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
use crate::gui_attributes::*;
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct WindowUniform {
|
||||
pub dimensions: Dimensions<u32>,
|
||||
}
|
||||
|
||||
impl WindowUniform {
|
||||
pub fn new(width: u32, height: u32) -> Self {
|
||||
Self {
|
||||
dimensions: Dimensions::new(width, height),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl bytemuck::Zeroable for WindowUniform {}
|
||||
unsafe impl bytemuck::Pod for WindowUniform {}
|
||||
Reference in New Issue
Block a user