pub struct QueryPool { /* private fields */ }
Expand description
A collection of one or more queries of a particular type.
Implementations
sourceimpl QueryPool
impl QueryPool
sourcepub fn new(
device: Arc<Device>,
create_info: QueryPoolCreateInfo
) -> Result<Arc<QueryPool>, QueryPoolCreationError>
pub fn new(
device: Arc<Device>,
create_info: QueryPoolCreateInfo
) -> Result<Arc<QueryPool>, QueryPoolCreationError>
sourcepub fn query_type(&self) -> QueryType
pub fn query_type(&self) -> QueryType
Returns the query type of the pool.
sourcepub fn query_count(&self) -> u32
pub fn query_count(&self) -> u32
Returns the number of query slots of this query pool.
sourcepub fn query(&self, index: u32) -> Option<Query<'_>>
pub fn query(&self, index: u32) -> Option<Query<'_>>
Returns a reference to a single query slot, or None
if the index is out of range.
sourcepub fn queries_range(&self, range: Range<u32>) -> Option<QueriesRange<'_>>
pub fn queries_range(&self, range: Range<u32>) -> Option<QueriesRange<'_>>
Returns a reference to a range of queries, or None
if out of range.
Panic
Panics if the range is empty.
Trait Implementations
sourceimpl DeviceOwned for QueryPool
impl DeviceOwned for QueryPool
sourceimpl VulkanObject for QueryPool
impl VulkanObject for QueryPool
sourcefn internal_object(&self) -> QueryPool
fn internal_object(&self) -> QueryPool
Returns a reference to the object.
impl Eq for QueryPool
Auto Trait Implementations
impl RefUnwindSafe for QueryPool
impl Send for QueryPool
impl Sync for QueryPool
impl Unpin for QueryPool
impl UnwindSafe for QueryPool
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more