Added cmd_fill_buffer and cmd_update_buffer
This commit is contained in:
parent
e208c247af
commit
991a114018
|
@ -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"
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue