mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-21 14:24:18 +00:00
Fix wrong comparison in push constant size validation check (#2452)
* Fix wrong comparison in push constant size validation check * Fix incorrectly placed backtick in validation error problem Oops.
This commit is contained in:
parent
9b6e307569
commit
90c104c9f1
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user