| 1 | //! <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_NV_memory_decompression.html> |
| 2 | |
| 3 | use crate::vk; |
| 4 | |
| 5 | impl crate::nv::memory_decompression::Device { |
| 6 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdDecompressMemoryNV.html> |
| 7 | pub unsafe fn cmd_decompress_memory( |
| 8 | &self, |
| 9 | command_buffer: vk::CommandBuffer, |
| 10 | decompress_memory_regions: &[vk::DecompressMemoryRegionNV], |
| 11 | ) { |
| 12 | (self.fp.cmd_decompress_memory_nv)( |
| 13 | command_buffer, |
| 14 | decompress_memory_regions.len() as u32, |
| 15 | decompress_memory_regions.as_ptr(), |
| 16 | ) |
| 17 | } |
| 18 | |
| 19 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdDecompressMemoryIndirectCountNV.html> |
| 20 | pub unsafe fn cmd_decompress_memory_indirect_count( |
| 21 | &self, |
| 22 | command_buffer: vk::CommandBuffer, |
| 23 | indirect_commands_address: vk::DeviceAddress, |
| 24 | indirect_commands_count_address: vk::DeviceAddress, |
| 25 | stride: u32, |
| 26 | ) { |
| 27 | (self.fp.cmd_decompress_memory_indirect_count_nv)( |
| 28 | command_buffer, |
| 29 | indirect_commands_address, |
| 30 | indirect_commands_count_address, |
| 31 | stride, |
| 32 | ) |
| 33 | } |
| 34 | } |