Skip to content

Commit

Permalink
fix vkCmdDrawMeshIndirect() validation using wrong type (#2581)
Browse files Browse the repository at this point in the history
  • Loading branch information
Firestar99 authored Oct 18, 2024
1 parent 123eda1 commit 552caad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vulkano/src/command_buffer/commands/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4738,7 +4738,7 @@ impl RawRecordingCommandBuffer {
}));
}
} else {
if size_of::<DrawIndirectCommand>() as DeviceSize > indirect_buffer.size() {
if size_of::<DrawMeshTasksIndirectCommand>() as DeviceSize > indirect_buffer.size() {
return Err(Box::new(ValidationError {
problem: "`draw_count` is 1, but `size_of::<DrawMeshTasksIndirectCommand>()` \
is greater than `indirect_buffer.size()`"
Expand Down

0 comments on commit 552caad

Please sign in to comment.