librashader_runtime/
quad.rs1use bytemuck::{Pod, Zeroable};
2
3pub enum QuadType {
5    Offscreen,
7    Final,
9}
10
11#[rustfmt::skip]
13pub static IDENTITY_MVP: &[f32; 16] = &[
14    1.0, 0.0, 0.0, 0.0,
15    0.0, 1.0, 0.0, 0.0,
16    0.0, 0.0, 1.0, 0.0,
17    0.0, 0.0, 0.0, 1.0,
18];
19
20#[rustfmt::skip]
22pub static DEFAULT_MVP: &[f32; 16] = &[
23    2f32, 0.0, 0.0, 0.0,
24    0.0, 2.0, 0.0, 0.0,
25    0.0, 0.0, 0.0, 0.0,
26    -1.0, -1.0, 0.0, 1.0,
27];
28
29#[repr(C)]
33#[derive(Debug, Copy, Clone, Default, Zeroable, Pod)]
34pub struct VertexInput {
35    pub position: [f32; 4], pub texcoord: [f32; 2], }