Skip to content

Commit

Permalink
remove erroneous assert in get_query_pool_results (ash-rs#335)
Browse files Browse the repository at this point in the history
the stride can be bigger than a u64
for example when querying more than one pipeline statistic
  • Loading branch information
filnet authored Dec 7, 2020
1 parent 683a065 commit 29cab9e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ash/src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1451,10 +1451,6 @@ pub trait DeviceV1_0 {
flags: vk::QueryResultFlags,
) -> VkResult<()> {
let data_length = query_count as usize;
assert!(
mem::size_of::<T>() <= mem::size_of::<u64>(),
"T can not be bigger than an u64"
);
assert!(
data_length <= data.len(),
"query_count was higher than the length of the slice"
Expand Down

0 comments on commit 29cab9e

Please sign in to comment.