summaryrefslogtreecommitdiff
path: root/src/vertex.rs
diff options
context:
space:
mode:
authorMicha White <botahamec@outlook.com>2022-09-18 21:18:23 -0400
committerMicha White <botahamec@outlook.com>2022-09-18 21:18:23 -0400
commit2d2c88a704455f5dc3e14b557bd52eefcec14d2e (patch)
treeb53f409d6e7fb7387816640bc76c88ebe7f8364c /src/vertex.rs
parentcd7d74507fa54d026547b7dda9e1498a81a395b5 (diff)
Some optimization
Diffstat (limited to 'src/vertex.rs')
-rw-r--r--src/vertex.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vertex.rs b/src/vertex.rs
index 6514fd3..a24a601 100644
--- a/src/vertex.rs
+++ b/src/vertex.rs
@@ -3,11 +3,13 @@ use std::mem::size_of;
use bytemuck::{Pod, Zeroable};
/// The vertices needed to form a square
-pub const SQUARE: [Vertex; 4] = [
+pub const SQUARE: [Vertex; 6] = [
Vertex::new(-0.5, -0.5),
Vertex::new(0.5, -0.5),
Vertex::new(-0.5, 0.5),
Vertex::new(0.5, 0.5),
+ Vertex::new(-0.5, 0.5),
+ Vertex::new(0.5, -0.5),
];
#[repr(C)]