Struct ash::extensions::khr::PerformanceQuery
source · 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