pub fn copy_query_pool_results<D, T>(
        &mut self,
        query_pool: Arc<QueryPool>,
        queries: Range<u32>,
        destination: Arc<D>,
        flags: QueryResultFlags,
    ) -> Result<&mut Self, CopyQueryPoolResultsError>
    where
        D: TypedBufferAccess<Content = [T]> + 'static,
        T: QueryResultElement,
    {
        unsafe {
            self.ensure_outside_render_pass()?;
            let stride = check_copy_query_pool_results(
                self.device(),
                &query_pool,
                queries.clone(),
                destination.as_ref(),
                flags,
            )?;
            self.inner
                .copy_query_pool_results(query_pool, queries, destination, stride, flags)?;
        }

        Ok(self)
    }
/// Adds a command that copies the results of a range of queries to a buffer on the GPU.
///
/// [`query_pool.ty().result_size()`](crate::query::QueryType::result_size) elements
/// will be written for each query in the range, plus 1 extra element per query if
/// [`QueryResultFlags::with_availability`] is enabled.
/// The provided buffer must be large enough to hold the data.
///
/// See also [`get_results`](crate::query::QueriesRange::get_results).
Adds a command that copies the results of a range of queries to a buffer on the GPU.


Adds a command that copies the results of a range of queries to a buffer on the GPU .
pub fn copy_query_pool_results<D, T>(
        &mut self,
        query_pool: Arc<QueryPool>,
        queries: Range<u32>,
        destination: Arc<D>,
        flags: QueryResultFlags,
    ) -> Result<&mut Self, CopyQueryPoolResultsError>
    where
        D: TypedBufferAccess<Content = [T]> + 'static,
        T: QueryResultElement,
    {
        unsafe {
            self.ensure_outside_render_pass()?;
            let stride = check_copy_query_pool_results(
                self.device(),
                &query_pool,
                queries.clone(),
                destination.as_ref(),
                flags,
            )?;
            self.inner
                .copy_query_pool_results(query_pool, queries, destination, stride, flags)?;
        }
        Ok(self)
    }
pub fn copy_query_pool_results < D , T > ( & mut self , query_pool : Arc < QueryPool > , queries : Range < u32 > , destination : Arc < D > , flags : QueryResultFlags , ) -> Result < & mut Self , CopyQueryPoolResultsError > where D : TypedBufferAccess < Content = [ T ] > + ' static , T : QueryResultElement , { unsafe { self . ensure_outside_render_pass ( ) ? ; let stride = check_copy_query_pool_results ( self . device ( ) , & query_pool , queries . clone ( ) , destination . as_ref ( ) , flags , ) ? ; self . inner . copy_query_pool_results ( query_pool , queries , destination , stride , flags ) ? ; } Ok ( self ) }
Adds a command that copies the results of a range of queries to a buffer on the GPU.
Adds a command that copies the results of a range of queries to a buffer on the GPU .
&mut self
query_pool
Arc<QueryPool>
queries
Range<u32>
destination
Arc<D>
flags
QueryResultFlags
&mut self
query_pool
Arc<QueryPool>
queries
Range<u32>
destination
Arc<D>
flags
QueryResultFlags