We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21f46d9 commit 3500363Copy full SHA for 3500363
tests/ui/arch/task_shader_mispile.rs
@@ -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