[][src]Struct bedrock::QueryPool

pub struct QueryPool(_, _);

Opaque handle to a query pool object

Methods

impl QueryPool[src]

pub fn new(device: &Device, qtype: QueryType, count: u32) -> Result<Self>[src]

Create a new query pool object

Failure

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY

pub fn results64(
    &self,
    query_range: Range<u32>,
    flags: QueryResultFlags
) -> Result<Vec<u64>>
[src]

Copy results of queries in a query pool to a host memory region

Failure

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY
  • VK_ERROR_DEVICE_LOST

pub fn results32(
    &self,
    query_range: Range<u32>,
    flags: QueryResultFlags
) -> Result<Vec<u32>>
[src]

Copy results of queries in a query pool to a host memory region

Failure

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY
  • VK_ERROR_DEVICE_LOST

Trait Implementations

impl Drop for QueryPool[src]

impl VkHandle for QueryPool[src]

type Handle = VkQueryPool

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.