Skip to content

Commit

Permalink
fix vkCmdDrawMeshIndirect() validation using wrong type
Browse files Browse the repository at this point in the history
  • Loading branch information
Firestar99 committed Oct 18, 2024
1 parent d89e5cf commit ceb3c51
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 ceb3c51

Please sign in to comment.