add copy_image_to_buffer
This commit is contained in:
parent
54bdc204d2
commit
5b146d8085
1 changed files with 19 additions and 4 deletions
|
@ -302,6 +302,24 @@ pub trait DeviceV1_0 {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe fn cmd_copy_image_to_buffer(
|
||||||
|
&self,
|
||||||
|
command_buffer: vk::CommandBuffer,
|
||||||
|
src_image: vk::Image,
|
||||||
|
src_image_layout: vk::ImageLayout,
|
||||||
|
dst_buffer: vk::Buffer,
|
||||||
|
regions: &[vk::BufferImageCopy],
|
||||||
|
) {
|
||||||
|
self.fp_v1_0().cmd_copy_image_to_buffer(
|
||||||
|
command_buffer,
|
||||||
|
src_image,
|
||||||
|
src_image_layout,
|
||||||
|
dst_buffer,
|
||||||
|
regions.len() as vk::uint32_t,
|
||||||
|
regions.as_ptr(),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
unsafe fn cmd_copy_buffer_to_image(
|
unsafe fn cmd_copy_buffer_to_image(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -601,10 +619,7 @@ pub trait DeviceV1_0 {
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
contents: vk::SubpassContents,
|
contents: vk::SubpassContents,
|
||||||
) {
|
) {
|
||||||
self.fp_v1_0().cmd_next_subpass(
|
self.fp_v1_0().cmd_next_subpass(command_buffer, contents);
|
||||||
command_buffer,
|
|
||||||
contents,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe fn cmd_bind_pipeline(
|
unsafe fn cmd_bind_pipeline(
|
||||||
|
|
Loading…
Add table
Reference in a new issue