Added cmd_fill_buffer and cmd_update_buffer
This commit is contained in:
parent
e208c247af
commit
991a114018
2 changed files with 34 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ash"
|
name = "ash"
|
||||||
version = "0.18.3"
|
version = "0.18.4"
|
||||||
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"
|
||||||
|
|
|
@ -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(
|
unsafe fn cmd_copy_buffer(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
|
Loading…
Add table
Reference in a new issue