| 1 | //! <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_NV_device_diagnostic_checkpoints.html> |
| 2 | |
| 3 | use craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/; |
| 4 | use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::ffirust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/; |
| 5 | use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/; |
| 6 | use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/; |
| 7 | |
| 8 | impl craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::nvrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/nv/::device_diagnostic_checkpointsrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/nv/device_diagnostic_checkpoints/::Devicerust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/nv/device_diagnostic_checkpoints/Device# { |
| 9 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdSetCheckpointNV.html> |
| 10 | #[inline] |
| 11 | pub unsafe fn cmd_set_checkpointrust-analyzer cargo ash 0.38.0+1.3.281 extensions/nv/device_diagnostic_checkpoints/impl#[`crate::nv::device_diagnostic_checkpoints::Device`]cmd_set_checkpoint().( |
| 12 | &self, |
| 13 | command_buffer: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::CommandBufferrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/CommandBuffer#, |
| 14 | p_checkpoint_marker: *const ffirust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/::c_voidrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ffi/c_void#, |
| 15 | ) { |
| 16 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/nv/device_diagnostic_checkpoints/Device#fp..cmd_set_checkpoint_nvrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/nv/device_diagnostic_checkpoints/DeviceFn#cmd_set_checkpoint_nv.)(command_buffer, p_checkpoint_marker); |
| 17 | } |
| 18 | |
| 19 | /// Retrieve the number of elements to pass to [`get_queue_checkpoint_data()`][Self::get_queue_checkpoint_data()] |
| 20 | #[inline] |
| 21 | pub unsafe fn get_queue_checkpoint_data_lenrust-analyzer cargo ash 0.38.0+1.3.281 extensions/nv/device_diagnostic_checkpoints/impl#[`crate::nv::device_diagnostic_checkpoints::Device`]get_queue_checkpoint_data_len().(&self, queue: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::Queuerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/Queue#) -> usize { |
| 22 | let mut count = memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::MaybeUninitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/MaybeUninit#::uninitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]uninit().(); |
| 23 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/nv/device_diagnostic_checkpoints/Device#fp..get_queue_checkpoint_data_nvrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/nv/device_diagnostic_checkpoints/DeviceFn#get_queue_checkpoint_data_nv.)(queue, count.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]as_mut_ptr().(), ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/::null_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/null_mut().()); |
| 24 | count.assume_initrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]assume_init().() as usize |
| 25 | } |
| 26 | |
| 27 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetQueueCheckpointDataNV.html> |
| 28 | /// |
| 29 | /// Call [`get_queue_checkpoint_data_len()`][Self::get_queue_checkpoint_data_len()] to query the number of elements to pass to `out`. |
| 30 | /// Be sure to [`Default::default()`]-initialize these elements and optionally set their `p_next` pointer. |
| 31 | #[inline] |
| 32 | pub unsafe fn get_queue_checkpoint_datarust-analyzer cargo ash 0.38.0+1.3.281 extensions/nv/device_diagnostic_checkpoints/impl#[`crate::nv::device_diagnostic_checkpoints::Device`]get_queue_checkpoint_data().( |
| 33 | &self, |
| 34 | queue: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::Queuerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/Queue#, |
| 35 | out: &mut [vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::CheckpointDataNVrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/CheckpointDataNV#<'_>], |
| 36 | ) { |
| 37 | let mut count = out.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().() as u32; |
| 38 | (self.fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/nv/device_diagnostic_checkpoints/Device#fp..get_queue_checkpoint_data_nvrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/nv/device_diagnostic_checkpoints/DeviceFn#get_queue_checkpoint_data_nv.)(queue, &mut count, out.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_mut_ptr().()); |
| 39 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(count as usize, out.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().()); |
| 40 | } |
| 41 | } |