Skip to content

Commit 583f886

Browse files
committed
mesh shader ext: added test for task shader mispile when shader may panic
1 parent c7a72a3 commit 583f886

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/ui/arch/task_shader_mispile.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// build-pass
2+
// only-vulkan1.2
3+
// compile-flags: -Ctarget-feature=+MeshShadingEXT,+ext:SPV_EXT_mesh_shader
4+
5+
use spirv_std::arch::emit_mesh_tasks_ext;
6+
use spirv_std::spirv;
7+
8+
#[spirv(task_ext(threads(1)))]
9+
pub fn main(#[spirv(push_constant)] push: &u32) {
10+
let count = 20 / *push;
11+
unsafe {
12+
emit_mesh_tasks_ext(1, 2, 3);
13+
}
14+
}

0 commit comments

Comments
 (0)