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:
daigennki 2024-01-12 01:24:53 +09:00 committed by GitHub
parent 9b6e307569
commit 90c104c9f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 { return Err(Box::new(ValidationError {
problem: "`offset` + the size of `push_constants` is not less than the \ problem: "`offset` + the size of `push_constants` is not less than or \
`max_push_constants_size` limit" equal to the `max_push_constants_size` limit"
.into(), .into(),
vuids: &["VUID-vkCmdPushConstants-size-00371"], vuids: &["VUID-vkCmdPushConstants-size-00371"],
..Default::default() ..Default::default()