From c9f0236ad9619038691138f8fa62221a1a40cae5 Mon Sep 17 00:00:00 2001 From: Maik Klein Date: Thu, 15 Feb 2018 19:35:45 +0100 Subject: [PATCH] Add cmd_blit_image --- ash/src/device.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ash/src/device.rs b/ash/src/device.rs index dd1da8b..9c5c331 100644 --- a/ash/src/device.rs +++ b/ash/src/device.rs @@ -278,6 +278,28 @@ pub trait DeviceV1_0 { } } + unsafe fn cmd_blit_image( + &self, + command_buffer: vk::CommandBuffer, + src_image: vk::Image, + src_image_layout: vk::ImageLayout, + dst_image: vk::Image, + dst_image_layout: vk::ImageLayout, + regions: &[vk::ImageBlit], + filter: vk::Filter, + ) { + self.fp_v1_0().cmd_blit_image( + command_buffer, + src_image, + src_image_layout, + dst_image, + dst_image_layout, + regions.len() as _, + regions.as_ptr(), + filter, + ); + } + unsafe fn cmd_resolve_image( &self, command_buffer: vk::CommandBuffer,