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:
parent
683a065ed6
commit
29cab9e9b4
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue