Struct vulkano::query::OcclusionQueriesPool [] [src]

pub struct OcclusionQueriesPool {
    // some fields omitted
}

Methods

impl OcclusionQueriesPool
[src]

fn raw(device: &Arc<Device>, num_slots: u32) -> Result<OcclusionQueriesPoolOomError>

See the docs of new().

fn new(device: &Arc<Device>, num_slots: u32) -> Arc<OcclusionQueriesPool>

Builds a new query pool.

Panic

  • Panicks if the device or host ran out of memory.

fn num_slots(&self) -> u32

Returns the number of slots of that query pool.

fn device(&self) -> &Arc<Device>

Returns the device that was used to create this pool.

Trait Implementations

impl Drop for OcclusionQueriesPool
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more