[−][src]Struct bedrock::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]
&self,
query_range: Range<u32>,
flags: QueryResultFlags
) -> Result<Vec<u64>>
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]
&self,
query_range: Range<u32>,
flags: QueryResultFlags
) -> Result<Vec<u32>>
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
fn native_ptr(&self) -> VkQueryPool
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,