1 2 3 4 5 6 7 8 9 10 11 12
#[derive(Debug, Clone, Copy)] pub struct Injector { // TODO pub pixel_format: wgpu::TextureFormat, pub viewport_size: [u32; 2], } impl Injector { pub fn texture_format(&self) -> wgpu::TextureFormat { self.pixel_format } }