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
1 changed files with 0 additions and 4 deletions
|
@ -1451,10 +1451,6 @@ pub trait DeviceV1_0 {
|
||||||
flags: vk::QueryResultFlags,
|
flags: vk::QueryResultFlags,
|
||||||
) -> VkResult<()> {
|
) -> VkResult<()> {
|
||||||
let data_length = query_count as usize;
|
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!(
|
assert!(
|
||||||
data_length <= data.len(),
|
data_length <= data.len(),
|
||||||
"query_count was higher than the length of the slice"
|
"query_count was higher than the length of the slice"
|
||||||
|
|
Loading…
Add table
Reference in a new issue