Skip to content

Commit 8af2717

Browse files
committed
mesh shader ext: cargo fmt compiletests
1 parent d49ef85 commit 8af2717

6 files changed

+11
-11
lines changed

tests/ui/arch/mesh_shader_output_lines.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ pub fn main(
2424
positions[1] = Vec4::new(0.5, 0.5, 0.0, 1.0);
2525

2626
indices[0] = UVec2::new(0, 1);
27-
}
27+
}

tests/ui/arch/mesh_shader_output_points.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ pub fn main(
2323
positions[0] = Vec4::new(-0.5, 0.5, 0.0, 1.0);
2424

2525
indices[0] = 0;
26-
}
26+
}

tests/ui/arch/mesh_shader_output_triangles.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ pub fn main(
2525
positions[2] = Vec4::new(0.0, -0.5, 0.0, 1.0);
2626

2727
indices[0] = UVec3::new(0, 1, 2);
28-
}
28+
}

tests/ui/arch/mesh_shader_payload.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use spirv_std::spirv;
99
pub struct Payload {
1010
pub first: f32,
1111
pub second: f32,
12-
pub third: f32
12+
pub third: f32,
1313
}
1414

1515
#[spirv(mesh_ext(
@@ -21,7 +21,7 @@ pub struct Payload {
2121
pub fn main(
2222
#[spirv(position)] positions: &mut [Vec4; 3],
2323
#[spirv(primitive_triangle_indices_ext)] indices: &mut [UVec3; 1],
24-
#[spirv(task_payload_workgroup_ext)] payload: &Payload
24+
#[spirv(task_payload_workgroup_ext)] payload: &Payload,
2525
) {
2626
unsafe {
2727
set_mesh_outputs_ext(3, 1);
@@ -32,4 +32,4 @@ pub fn main(
3232
positions[2] = payload.third * Vec4::new(0.0, -0.5, 0.0, 1.0);
3333

3434
indices[0] = UVec3::new(0, 1, 2);
35-
}
35+
}

tests/ui/arch/task_shader.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
// only-vulkan1.2
33
// compile-flags: -Ctarget-feature=+MeshShadingEXT,+ext:SPV_EXT_mesh_shader
44

5-
use spirv_std::spirv;
65
use spirv_std::arch::emit_mesh_tasks_ext;
6+
use spirv_std::spirv;
77

88
#[spirv(task_ext(threads(1)))]
99
pub fn main() {
1010
unsafe {
1111
emit_mesh_tasks_ext(1, 2, 3);
1212
}
13-
}
13+
}

tests/ui/arch/task_shader_payload.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
// only-vulkan1.2
33
// compile-flags: -Ctarget-feature=+MeshShadingEXT,+ext:SPV_EXT_mesh_shader
44

5-
use spirv_std::spirv;
65
use spirv_std::arch::emit_mesh_tasks_ext;
6+
use spirv_std::spirv;
77

88
pub struct Payload {
99
pub first: u32,
10-
pub second: i32
10+
pub second: i32,
1111
}
1212

1313
#[spirv(task_ext(threads(1)))]
@@ -18,4 +18,4 @@ pub fn main(#[spirv(task_payload_workgroup_ext)] payload: &mut Payload) {
1818
unsafe {
1919
emit_mesh_tasks_ext(3, 4, 5);
2020
}
21-
}
21+
}

0 commit comments

Comments
 (0)