Skip to content

Commit

Permalink
mesh shader ext: added test for task shader mispile when shader may p…
Browse files Browse the repository at this point in the history
…anic
  • Loading branch information
Firestar99 committed Jun 11, 2024
1 parent c7a72a3 commit 583f886
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/ui/arch/task_shader_mispile.rs
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit 583f886

Please sign in to comment.