| 1 | //! <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_EXT_sample_locations.html> |
| 2 | |
| 3 | use crate::vk; |
| 4 | |
| 5 | impl crate::ext::sample_locations::Device { |
| 6 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdSetSampleLocationsEXT.html> |
| 7 | #[inline] |
| 8 | pub unsafe fn cmd_set_sample_locations( |
| 9 | &self, |
| 10 | command_buffer: vk::CommandBuffer, |
| 11 | sample_locations_info: &vk::SampleLocationsInfoEXT<'_>, |
| 12 | ) { |
| 13 | (self.fp.cmd_set_sample_locations_ext)(command_buffer, sample_locations_info) |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | impl crate::ext::sample_locations::Instance { |
| 18 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceMultisamplePropertiesEXT.html> |
| 19 | #[inline] |
| 20 | pub unsafe fn get_physical_device_multisample_properties( |
| 21 | &self, |
| 22 | physical_device: vk::PhysicalDevice, |
| 23 | samples: vk::SampleCountFlags, |
| 24 | multisample_properties: &mut vk::MultisamplePropertiesEXT<'_>, |
| 25 | ) { |
| 26 | (self.fp.get_physical_device_multisample_properties_ext)( |
| 27 | physical_device, |
| 28 | samples, |
| 29 | multisample_properties, |
| 30 | ) |
| 31 | } |
| 32 | } |