remove erroneous assert in get_query_pool_results (#335)

the stride can be bigger than a u64
for example when querying more than one pipeline statistic
This commit is contained in:
Philippe Renon 2020-12-07 23:31:06 +01:00 committed by GitHub
parent 683a065ed6
commit 29cab9e9b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"