pub struct PerformanceQuery { /* private fields */ }
Expand description
Implementations§
Source§impl PerformanceQuery
impl PerformanceQuery
pub fn new(entry: &Entry, instance: &Instance) -> Self
Sourcepub unsafe fn enumerate_physical_device_queue_family_performance_query_counters_len(
&self,
physical_device: PhysicalDevice,
queue_family_index: u32,
) -> VkResult<usize>
pub unsafe fn enumerate_physical_device_queue_family_performance_query_counters_len( &self, physical_device: PhysicalDevice, queue_family_index: u32, ) -> VkResult<usize>
Retrieve the number of elements to pass to enumerate_physical_device_queue_family_performance_query_counters()
Sourcepub unsafe fn enumerate_physical_device_queue_family_performance_query_counters(
&self,
physical_device: PhysicalDevice,
queue_family_index: u32,
out_counters: &mut [PerformanceCounterKHR],
out_counter_descriptions: &mut [PerformanceCounterDescriptionKHR],
) -> VkResult<()>
pub unsafe fn enumerate_physical_device_queue_family_performance_query_counters( &self, physical_device: PhysicalDevice, queue_family_index: u32, out_counters: &mut [PerformanceCounterKHR], out_counter_descriptions: &mut [PerformanceCounterDescriptionKHR], ) -> VkResult<()>
Call enumerate_physical_device_queue_family_performance_query_counters_len()
to query the number of elements to pass to out_counters
and out_counter_descriptions
.
Be sure to Default::default()
-initialize these elements and optionally set their p_next
pointer.
Sourcepub unsafe fn get_physical_device_queue_family_performance_query_passes(
&self,
physical_device: PhysicalDevice,
performance_query_create_info: &QueryPoolPerformanceCreateInfoKHR,
) -> u32
pub unsafe fn get_physical_device_queue_family_performance_query_passes( &self, physical_device: PhysicalDevice, performance_query_create_info: &QueryPoolPerformanceCreateInfoKHR, ) -> u32
Sourcepub unsafe fn acquire_profiling_lock(
&self,
device: Device,
info: &AcquireProfilingLockInfoKHR,
) -> VkResult<()>
pub unsafe fn acquire_profiling_lock( &self, device: Device, info: &AcquireProfilingLockInfoKHR, ) -> VkResult<()>
Sourcepub unsafe fn release_profiling_lock(&self, device: Device)
pub unsafe fn release_profiling_lock(&self, device: Device)
pub const fn name() -> &'static CStr
pub fn fp(&self) -> &KhrPerformanceQueryFn
pub fn instance(&self) -> Instance
Trait Implementations§
Source§impl Clone for PerformanceQuery
impl Clone for PerformanceQuery
Source§fn clone(&self) -> PerformanceQuery
fn clone(&self) -> PerformanceQuery
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PerformanceQuery
impl RefUnwindSafe for PerformanceQuery
impl Send for PerformanceQuery
impl Sync for PerformanceQuery
impl Unpin for PerformanceQuery
impl UnwindSafe for PerformanceQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)