Added (invalidate|flush)_mapped_memory_ranges
This commit is contained in:
parent
a4a19b4318
commit
544870ab24
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ash"
|
name = "ash"
|
||||||
version = "0.18.4"
|
version = "0.18.5"
|
||||||
authors = ["maik klein <maikklein@googlemail.com>"]
|
authors = ["maik klein <maikklein@googlemail.com>"]
|
||||||
description = "Vulkan bindings for Rust"
|
description = "Vulkan bindings for Rust"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
@ -941,6 +941,34 @@ pub trait DeviceV1_0 {
|
||||||
self.fp_v1_0().unmap_memory(self.handle(), memory);
|
self.fp_v1_0().unmap_memory(self.handle(), memory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe fn invalidate_mapped_memory_ranges(&self, ranges: &[vk::MappedMemoryRange])
|
||||||
|
-> VkResult<()>
|
||||||
|
{
|
||||||
|
let err_code = self.fp_v1_0().invalidate_mapped_memory_ranges(
|
||||||
|
self.handle(),
|
||||||
|
ranges.len() as vk::uint32_t,
|
||||||
|
ranges.as_ptr()
|
||||||
|
);
|
||||||
|
match err_code {
|
||||||
|
vk::Result::Success => Ok(()),
|
||||||
|
_ => Err(err_code),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
unsafe fn flush_mapped_memory_ranges(&self, ranges: &[vk::MappedMemoryRange])
|
||||||
|
-> VkResult<()>
|
||||||
|
{
|
||||||
|
let err_code = self.fp_v1_0().flush_mapped_memory_ranges(
|
||||||
|
self.handle(),
|
||||||
|
ranges.len() as vk::uint32_t,
|
||||||
|
ranges.as_ptr()
|
||||||
|
);
|
||||||
|
match err_code {
|
||||||
|
vk::Result::Success => Ok(()),
|
||||||
|
_ => Err(err_code),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
unsafe fn create_framebuffer(
|
unsafe fn create_framebuffer(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::FramebufferCreateInfo,
|
create_info: &vk::FramebufferCreateInfo,
|
||||||
|
|
Loading…
Reference in a new issue