Refactor to generalize pipeline drawing sequence

This commit is contained in:
Keavon Chambers
2020-05-23 12:36:47 -07:00
parent 9a60ba54fe
commit a9859b4bb4
18 changed files with 628 additions and 337 deletions
+18
View File
@@ -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 {}