Added cmd_fill_buffer and cmd_update_buffer

This commit is contained in:
Dzmitry Malyshau 2017-09-06 10:06:25 -04:00
parent e208c247af
commit 991a114018
2 changed files with 34 additions and 1 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "ash"
version = "0.18.3"
version = "0.18.4"
authors = ["maik klein <maikklein@googlemail.com>"]
description = "Vulkan bindings for Rust"
license = "MIT"

View file

@ -286,6 +286,39 @@ pub trait DeviceV1_0 {
);
}
unsafe fn cmd_fill_buffer(
&self,
command_buffer: vk::CommandBuffer,
buffer: vk::Buffer,
offset: vk::DeviceSize,
size: vk::DeviceSize,
data: vk::uint32_t,
) {
self.fp_v1_0().cmd_fill_buffer(
command_buffer,
buffer,
offset,
size,
data,
);
}
unsafe fn cmd_update_buffer(
&self,
command_buffer: vk::CommandBuffer,
buffer: vk::Buffer,
offset: vk::DeviceSize,
data: &[u8],
) {
self.fp_v1_0().cmd_update_buffer(
command_buffer,
buffer,
offset,
data.len() as u64,
data.as_ptr() as _,
);
}
unsafe fn cmd_copy_buffer(
&self,
command_buffer: vk::CommandBuffer,