Skip to content

Commit

Permalink
Add merge_pipeline_caches, queue_bind_sparse, get_render_area_granula…
Browse files Browse the repository at this point in the history
…rity to DeviceV1_0
  • Loading branch information
Rua committed Mar 14, 2021
1 parent 9662364 commit 4ed6a60
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions ash/src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1593,6 +1593,22 @@ pub trait DeviceV1_0 {
err_code.result_with_success(data)
}

#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkMergePipelineCaches.html>"]
unsafe fn merge_pipeline_caches(
&self,
dst_cache: vk::PipelineCache,
src_caches: &[vk::PipelineCache],
) -> VkResult<()> {
self.fp_v1_0()
.merge_pipeline_caches(
self.handle(),
dst_cache,
src_caches.len() as u32,
src_caches.as_ptr(),
)
.into()
}

#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkMapMemory.html>"]
unsafe fn map_memory(
&self,
Expand Down Expand Up @@ -1757,6 +1773,18 @@ pub trait DeviceV1_0 {
.into()
}

#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkQueueBindSparse.html>"]
unsafe fn queue_bind_sparse(
&self,
queue: vk::Queue,
bind_info: &[vk::BindSparseInfo],
fence: vk::Fence,
) -> VkResult<()> {
self.fp_v1_0()
.queue_bind_sparse(queue, bind_info.len() as u32, bind_info.as_ptr(), fence)
.into()
}

#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCreateBufferView.html>"]
unsafe fn create_buffer_view(
&self,
Expand Down Expand Up @@ -1976,6 +2004,14 @@ pub trait DeviceV1_0 {
.bind_image_memory(self.handle(), image, device_memory, offset)
.into()
}

#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkGetRenderAreaGranularity.html>"]
unsafe fn get_render_area_granularity(&self, render_pass: vk::RenderPass) -> vk::Extent2D {
let mut granularity = mem::zeroed();
self.fp_v1_0()
.get_render_area_granularity(self.handle(), render_pass, &mut granularity);
granularity
}
}

#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkDevice.html>"]
Expand Down

0 comments on commit 4ed6a60

Please sign in to comment.