diff --git a/tests/ui/arch/task_shader_mispile.rs b/tests/ui/arch/task_shader_mispile.rs new file mode 100644 index 0000000000..ec012789f6 --- /dev/null +++ b/tests/ui/arch/task_shader_mispile.rs @@ -0,0 +1,14 @@ +// build-pass +// only-vulkan1.2 +// compile-flags: -Ctarget-feature=+MeshShadingEXT,+ext:SPV_EXT_mesh_shader + +use spirv_std::arch::emit_mesh_tasks_ext; +use spirv_std::spirv; + +#[spirv(task_ext(threads(1)))] +pub fn main(#[spirv(push_constant)] push: &u32) { + let count = 20 / *push; + unsafe { + emit_mesh_tasks_ext(1, 2, 3); + } +}