Skip to content

Commit 4b55f91

Browse files
BeastLe9enDeddyb
authored andcommitted
Support 'threads' with 'mesh_nv' and 'task_nv'
1 parent 685c79a commit 4b55f91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/rustc_codegen_spirv/src/symbols.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ fn parse_entry_attrs(
651651
.execution_modes
652652
.push((origin_mode, ExecutionModeExtra::new([])));
653653
}
654-
GLCompute => {
654+
GLCompute | MeshNV | TaskNV => {
655655
if let Some(local_size) = local_size {
656656
entry
657657
.execution_modes
@@ -660,7 +660,7 @@ fn parse_entry_attrs(
660660
return Err((
661661
arg.span(),
662662
String::from(
663-
"The `threads` argument must be specified when using `#[spirv(compute)]`",
663+
"The `threads` argument must be specified when using `#[spirv(compute)]`, '#[spirv(mesh_nv)]' or '#[spirv(task_nv)]'",
664664
),
665665
));
666666
}

0 commit comments

Comments
 (0)