diff --git a/vulkano/src/command_buffer/commands/bind_push.rs b/vulkano/src/command_buffer/commands/bind_push.rs index acb12ce6..d8f9d88e 100644 --- a/vulkano/src/command_buffer/commands/bind_push.rs +++ b/vulkano/src/command_buffer/commands/bind_push.rs @@ -1062,10 +1062,10 @@ impl RawRecordingCommandBuffer { })); } - if offset as usize + remaining_size >= properties.max_push_constants_size as usize { + if offset as usize + remaining_size > properties.max_push_constants_size as usize { return Err(Box::new(ValidationError { - problem: "`offset` + the size of `push_constants` is not less than the \ - `max_push_constants_size` limit" + problem: "`offset` + the size of `push_constants` is not less than or \ + equal to the `max_push_constants_size` limit" .into(), vuids: &["VUID-vkCmdPushConstants-size-00371"], ..Default::default()