Debian Codegraph @

src/extensions/nv/coverage_reduction_mode.rs

raw symbols SCIP
1 //! <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_NV_coverage_reduction_mode.html>
2
3 use craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::preluderust-analyzer cargo ash 0.38.0+1.3.281 prelude/::*;
4 use craterust-analyzer cargo ash 0.38.0+1.3.281 crate/::vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/;
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/::coverage_reduction_moderust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/nv/coverage_reduction_mode/::Instancerust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/nv/coverage_reduction_mode/Instance# {
9 /// Retrieve the number of elements to pass to [`get_physical_device_supported_framebuffer_mixed_samples_combinations()`][Self::get_physical_device_supported_framebuffer_mixed_samples_combinations()]
10 #[inline]
11 pub unsafe fn get_physical_device_supported_framebuffer_mixed_samples_combinations_lenrust-analyzer cargo ash 0.38.0+1.3.281 extensions/nv/coverage_reduction_mode/impl#[`crate::nv::coverage_reduction_mode::Instance`]get_physical_device_supported_framebuffer_mixed_samples_combinations_len().(
12 &self,
13 physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#,
14 ) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<usize> {
15 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().();
16 (self
17 .fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/nv/coverage_reduction_mode/Instance#fp.
18 .get_physical_device_supported_framebuffer_mixed_samples_combinations_nvrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/nv/coverage_reduction_mode/InstanceFn#get_physical_device_supported_framebuffer_mixed_samples_combinations_nv.)(
19 physical_device,
20 count.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]as_mut_ptr().(),
21 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().(),
22 )
23 .assume_init_on_successrust-analyzer cargo ash 0.38.0+1.3.281 prelude/impl#[`vk::Result`]assume_init_on_success().(count)
24 .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map().(|c| c as usize)
25 }
26
27 /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV.html>
28 ///
29 /// Call [`get_physical_device_supported_framebuffer_mixed_samples_combinations_len()`][Self::get_physical_device_supported_framebuffer_mixed_samples_combinations_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_physical_device_supported_framebuffer_mixed_samples_combinationsrust-analyzer cargo ash 0.38.0+1.3.281 extensions/nv/coverage_reduction_mode/impl#[`crate::nv::coverage_reduction_mode::Instance`]get_physical_device_supported_framebuffer_mixed_samples_combinations().(
33 &self,
34 physical_device: vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::PhysicalDevicerust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/PhysicalDevice#,
35 out: &mut [vkrust-analyzer cargo ash 0.38.0+1.3.281 vk/::FramebufferMixedSamplesCombinationNVrust-analyzer cargo ash 0.38.0+1.3.281 vk/definitions/FramebufferMixedSamplesCombinationNV#<'_>],
36 ) -> VkResultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/VkResult#<()> {
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
39 .fprust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/nv/coverage_reduction_mode/Instance#fp.
40 .get_physical_device_supported_framebuffer_mixed_samples_combinations_nvrust-analyzer cargo ash 0.38.0+1.3.281 extensions_generated/nv/coverage_reduction_mode/InstanceFn#get_physical_device_supported_framebuffer_mixed_samples_combinations_nv.)(
41 physical_device,
42 &mut count,
43 out.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_mut_ptr().(),
44 )
45 .resultrust-analyzer cargo ash 0.38.0+1.3.281 prelude/impl#[`vk::Result`]result().()?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
46 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().());
47 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(())
48 }
49 }