Struct QueryPoolObject

Source
pub struct QueryPoolObject<Device: VkHandle<Handle = VkDevice>>(/* private fields */);
Expand description

Opaque handle to a query pool object

Implementations§

Source§

impl<Device: VkHandle<Handle = VkDevice>> QueryPoolObject<Device>

Source

pub const unsafe fn manage(handle: VkQueryPool, parent: Device) -> Self

Constructs from raw values

§Safety

the resource must be created from the device and not freed anywhere

Source

pub const fn unmanage(self) -> (VkQueryPool, Device)

Purges the construct (Drop will not be called for this resource)

Source§

impl<Device: VkHandle<Handle = VkDevice> + Clone> QueryPoolObject<&Device>

Source

pub fn clone_parent(self) -> QueryPoolObject<Device>

Owning parent object by cloning it.

Source§

impl<Device: Device> QueryPoolObject<Device>

Source

pub fn new(device: Device, info: &QueryPoolCreateInfo) -> Result<Self>

Available on crate feature Implements only.

Create a new query pool object

§Failure

On failure, this command returns

Trait Implementations§

Source§

impl<Device: Device> DeviceChild for QueryPoolObject<Device>

Source§

type ConcreteDevice = Device

A concrete type of the parent device object.
Source§

fn device(&self) -> &Self::ConcreteDevice

Retrieve a reference to a device object that creates this object
Source§

impl<Device: VkHandle<Handle = VkDevice>> DeviceChildHandle for QueryPoolObject<Device>

Source§

fn device_handle(&self) -> VkDevice

Retrieve a reference to a device handle that creates this objecs
Source§

impl<Device: VkHandle<Handle = VkDevice>> Drop for QueryPoolObject<Device>

Available on crate feature Implements only.
Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<Device: VkHandle<Handle = VkDevice>> QueryPool for QueryPoolObject<Device>

Source§

fn results<T>( &self, offset: u32, sink: &mut [T], flags: QueryResultFlags, ) -> QueryResult<()>

Available on crate feature Implements only.
Copy results of queries in a query pool to a host memory region Read more
Source§

fn result_array<const N: usize, T>( &self, offset: u32, flags: QueryResultFlags, ) -> QueryResult<[T; N]>

Available on crate feature Implements only.
Copy results of queries in a query pool to a host memory region Read more
Source§

fn results64_alloc( &self, query_range: Range<u32>, flags: QueryResultFlags, ) -> QueryResult<Vec<u64>>

Available on crate features Implements and alloc only.
Copy results of queries in a query pool to a host memory region Read more
Source§

fn results32_alloc( &self, query_range: Range<u32>, flags: QueryResultFlags, ) -> QueryResult<Vec<u32>>

Available on crate features Implements and alloc only.
Copy results of queries in a query pool to a host memory region Read more
Source§

impl<Device: VkHandle<Handle = VkDevice>> VkHandle for QueryPoolObject<Device>

Source§

type Handle = VkQueryPool

Source§

fn native_ptr(&self) -> Self::Handle

Retrieve an underlying handle
Source§

fn as_transparent_ref(&self) -> VkHandleRef<'_, Self::Handle>

Source§

impl<Device: VkHandle<Handle = VkDevice>> VkHandleMut for QueryPoolObject<Device>

Source§

fn native_ptr_mut(&mut self) -> Self::Handle

Retrieve an underlying mutable handle
Source§

fn as_transparent_ref_mut(&mut self) -> VkHandleRefMut<'_, Self::Handle>

Source§

impl<Device: VkHandle<Handle = VkDevice>> VkObject for QueryPoolObject<Device>

Source§

const TYPE: VkObjectType = 12i32

Source§

fn set_name(&self, name: Option<&CStr>) -> Result<()>
where Self: DeviceChild<ConcreteDevice: InstanceChild<ConcreteInstance: InstanceExtensions>>, Self::Handle: VkRawHandle,

Available on crate features Implements and VK_EXT_debug_utils only.
Give a user-friendly name to this object. Read more
Source§

impl<Device: VkHandle<Handle = VkDevice> + Send> Send for QueryPoolObject<Device>

Source§

impl<Device: VkHandle<Handle = VkDevice> + Sync> Sync for QueryPoolObject<Device>

Auto Trait Implementations§

§

impl<Device> Freeze for QueryPoolObject<Device>
where Device: Freeze,

§

impl<Device> RefUnwindSafe for QueryPoolObject<Device>
where Device: RefUnwindSafe,

§

impl<Device> Unpin for QueryPoolObject<Device>
where Device: Unpin,

§

impl<Device> UnwindSafe for QueryPoolObject<Device>
where Device: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> VkHandleExt for T
where T: VkHandle,

Source§

fn eq_handle(&self, other: &Self) -> bool
where Self::Handle: VkRawHandle,

Checks the equality between vulkan objects by their handle value.