Struct vulkano::query::UnsafeQueryPool
[−]
[src]
pub struct UnsafeQueryPool<P = Arc<Device>> where
P: SafeDeref<Target = Device>, { /* fields omitted */ }
Methods
impl<P> UnsafeQueryPool<P> where
P: SafeDeref<Target = Device>,
[src]
P: SafeDeref<Target = Device>,
fn new(
device: P,
ty: QueryType,
num_slots: u32
) -> Result<UnsafeQueryPool<P>, QueryPoolCreationError>
device: P,
ty: QueryType,
num_slots: u32
) -> Result<UnsafeQueryPool<P>, QueryPoolCreationError>
Builds a new query pool.
fn num_slots(&self) -> u32
Returns the number of slots of that query pool.
fn device(&self) -> &P
Returns the device used to create the pool.
Trait Implementations
impl<P> Drop for UnsafeQueryPool<P> where
P: SafeDeref<Target = Device>,
[src]
P: SafeDeref<Target = Device>,