From 552caad3941dc519fc6710b071993aaacdf5ba66 Mon Sep 17 00:00:00 2001 From: Firestar99 <31222740+Firestar99@users.noreply.github.com> Date: Fri, 18 Oct 2024 11:14:17 +0200 Subject: [PATCH] fix `vkCmdDrawMeshIndirect()` validation using wrong type (#2581) --- vulkano/src/command_buffer/commands/pipeline.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulkano/src/command_buffer/commands/pipeline.rs b/vulkano/src/command_buffer/commands/pipeline.rs index 5ae954e0..d77359f0 100644 --- a/vulkano/src/command_buffer/commands/pipeline.rs +++ b/vulkano/src/command_buffer/commands/pipeline.rs @@ -4738,7 +4738,7 @@ impl RawRecordingCommandBuffer { })); } } else { - if size_of::() as DeviceSize > indirect_buffer.size() { + if size_of::() as DeviceSize > indirect_buffer.size() { return Err(Box::new(ValidationError { problem: "`draw_count` is 1, but `size_of::()` \ is greater than `indirect_buffer.size()`"