witer 0.11.4

An iterator-based Win32 windowing library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[repr(C)]
#[derive(Debug, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)]
pub struct FrameUniform {
  pub frame_index: u32,
}

impl FrameUniform {
  pub fn new() -> Self {
    Self { frame_index: 1 }
  }

  pub fn update(&mut self) {
    self.frame_index = self.frame_index.wrapping_add(1);
  }
}