mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-22 06:45:13 +00:00
Support 'threads' with 'mesh_nv' and 'task_nv'
This commit is contained in:
parent
685c79a972
commit
4b55f91de3
@ -651,7 +651,7 @@ fn parse_entry_attrs(
|
|||||||
.execution_modes
|
.execution_modes
|
||||||
.push((origin_mode, ExecutionModeExtra::new([])));
|
.push((origin_mode, ExecutionModeExtra::new([])));
|
||||||
}
|
}
|
||||||
GLCompute => {
|
GLCompute | MeshNV | TaskNV => {
|
||||||
if let Some(local_size) = local_size {
|
if let Some(local_size) = local_size {
|
||||||
entry
|
entry
|
||||||
.execution_modes
|
.execution_modes
|
||||||
@ -660,7 +660,7 @@ fn parse_entry_attrs(
|
|||||||
return Err((
|
return Err((
|
||||||
arg.span(),
|
arg.span(),
|
||||||
String::from(
|
String::from(
|
||||||
"The `threads` argument must be specified when using `#[spirv(compute)]`",
|
"The `threads` argument must be specified when using `#[spirv(compute)]`, '#[spirv(mesh_nv)]' or '#[spirv(task_nv)]'",
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user