add two rustfmt skips for better alignment
@@ -34,10 +34,8 @@ use hal::{Device, Instance, PhysicalDevice, Surface, Swapchain};
use std::fs;
use std::io::{Cursor, Read};
-const DIMS: Extent2D = Extent2D {
- width: 1024,
- height: 768,
-};
+#[cfg_attr(rustfmt, rustfmt_skip)]?
+const DIMS: Extent2D = Extent2D { width: 1024,height: 768 };
const ENTRY_NAME: &str = "main";
@@ -48,31 +46,15 @@ struct Vertex {
a_Uv: [f32; 2],
}
+#[cfg_attr(rustfmt, rustfmt_skip)]?
const QUAD: [Vertex; 6] = [
- Vertex {
- a_Pos: [-0.5, 0.33],
- a_Uv: [0.0, 1.0],
- },
- Vertex {
- a_Pos: [0.5, 0.33],
- a_Uv: [1.0, 1.0],
- },
- Vertex {
- a_Pos: [0.5, -0.33],
- a_Uv: [1.0, 0.0],
- },
- Vertex {
- a_Pos: [-0.5, 0.33],
- a_Uv: [0.0, 1.0],
- },
- Vertex {
- a_Pos: [0.5, -0.33],
- a_Uv: [1.0, 0.0],
- },
- Vertex {
- a_Pos: [-0.5, -0.33],
- a_Uv: [0.0, 0.0],
- },
+ Vertex { a_Pos: [ -0.5, 0.33 ], a_Uv: [0.0, 1.0] },
+ Vertex { a_Pos: [ 0.5, 0.33 ], a_Uv: [1.0, 1.0] },
+ Vertex { a_Pos: [ 0.5,-0.33 ], a_Uv: [1.0, 0.0] },
+
+ Vertex { a_Pos: [ -0.5, 0.33 ], a_Uv: [0.0, 1.0] },
+ Vertex { a_Pos: [ 0.5,-0.33 ], a_Uv: [1.0, 0.0] },
+ Vertex { a_Pos: [ -0.5,-0.33 ], a_Uv: [0.0, 0.0] },
];
const COLOR_RANGE: i::SubresourceRange = i::SubresourceRange {
