Struct vulkano::query::UnsafeQueryPool
source · pub struct UnsafeQueryPool { /* private fields */ }
Implementations
sourceimpl UnsafeQueryPool
impl UnsafeQueryPool
sourcepub fn new(
device: Arc<Device>,
ty: QueryType,
num_slots: u32
) -> Result<UnsafeQueryPool, QueryPoolCreationError>
pub fn new(
device: Arc<Device>,
ty: QueryType,
num_slots: u32
) -> Result<UnsafeQueryPool, QueryPoolCreationError>
Builds a new query pool.
pub fn query(&self, index: u32) -> Option<UnsafeQuery<'_>>
sourcepub fn queries_range(
&self,
first_index: u32,
count: u32
) -> Option<UnsafeQueriesRange<'_>>
pub fn queries_range(
&self,
first_index: u32,
count: u32
) -> Option<UnsafeQueriesRange<'_>>
Panic
Panics if count
is 0.
Trait Implementations
sourceimpl DeviceOwned for UnsafeQueryPool
impl DeviceOwned for UnsafeQueryPool
sourceimpl Drop for UnsafeQueryPool
impl Drop for UnsafeQueryPool
sourceimpl VulkanObject for UnsafeQueryPool
impl VulkanObject for UnsafeQueryPool
sourceconst TYPE: DebugReportObjectTypeEXT = 12u32
const TYPE: DebugReportObjectTypeEXT = 12u32
The
DebugReportObjectTypeEXT
of the internal Vulkan handle.sourcefn internal_object(&self) -> QueryPool
fn internal_object(&self) -> QueryPool
Returns a reference to the object.
Auto Trait Implementations
impl RefUnwindSafe for UnsafeQueryPool
impl Send for UnsafeQueryPool
impl Sync for UnsafeQueryPool
impl Unpin for UnsafeQueryPool
impl UnwindSafe for UnsafeQueryPool
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.