Add commands for indirect draw/dispatch, next subpass and setting ref values
This commit is contained in:
parent
090ee89e1d
commit
6d6267693e
2 changed files with 83 additions and 1 deletions
|
@ -495,6 +495,23 @@ pub trait DeviceV1_0 {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe fn cmd_draw_indexed_indirect(
|
||||||
|
&self,
|
||||||
|
command_buffer: vk::CommandBuffer,
|
||||||
|
buffer: vk::Buffer,
|
||||||
|
offset: vk::DeviceSize,
|
||||||
|
draw_count: vk::uint32_t,
|
||||||
|
stride: vk::uint32_t,
|
||||||
|
) {
|
||||||
|
self.fp_v1_0().cmd_draw_indexed_indirect(
|
||||||
|
command_buffer,
|
||||||
|
buffer,
|
||||||
|
offset,
|
||||||
|
draw_count,
|
||||||
|
stride,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
unsafe fn cmd_execute_commands(
|
unsafe fn cmd_execute_commands(
|
||||||
&self,
|
&self,
|
||||||
primary_command_buffer: vk::CommandBuffer,
|
primary_command_buffer: vk::CommandBuffer,
|
||||||
|
@ -542,6 +559,17 @@ pub trait DeviceV1_0 {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe fn cmd_next_subpass(
|
||||||
|
&self,
|
||||||
|
command_buffer: vk::CommandBuffer,
|
||||||
|
contents: vk::SubpassContents,
|
||||||
|
) {
|
||||||
|
self.fp_v1_0().cmd_next_subpass(
|
||||||
|
command_buffer,
|
||||||
|
contents,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
unsafe fn cmd_bind_pipeline(
|
unsafe fn cmd_bind_pipeline(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -602,6 +630,23 @@ pub trait DeviceV1_0 {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe fn cmd_draw_indirect(
|
||||||
|
&self,
|
||||||
|
command_buffer: vk::CommandBuffer,
|
||||||
|
buffer: vk::Buffer,
|
||||||
|
offset: vk::DeviceSize,
|
||||||
|
draw_count: vk::uint32_t,
|
||||||
|
stride: vk::uint32_t,
|
||||||
|
) {
|
||||||
|
self.fp_v1_0().cmd_draw_indirect(
|
||||||
|
command_buffer,
|
||||||
|
buffer,
|
||||||
|
offset,
|
||||||
|
draw_count,
|
||||||
|
stride,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
unsafe fn cmd_dispatch(
|
unsafe fn cmd_dispatch(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -617,6 +662,19 @@ pub trait DeviceV1_0 {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe fn cmd_dispatch_indirect(
|
||||||
|
&self,
|
||||||
|
command_buffer: vk::CommandBuffer,
|
||||||
|
buffer: vk::Buffer,
|
||||||
|
offset: vk::DeviceSize,
|
||||||
|
) {
|
||||||
|
self.fp_v1_0().cmd_dispatch_indirect(
|
||||||
|
command_buffer,
|
||||||
|
buffer,
|
||||||
|
offset,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
unsafe fn cmd_set_viewport(
|
unsafe fn cmd_set_viewport(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
@ -630,6 +688,30 @@ pub trait DeviceV1_0 {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe fn cmd_set_blend_constants(
|
||||||
|
&self,
|
||||||
|
command_buffer: vk::CommandBuffer,
|
||||||
|
blend_constants: [f32; 4],
|
||||||
|
) {
|
||||||
|
self.fp_v1_0().cmd_set_blend_constants(
|
||||||
|
command_buffer,
|
||||||
|
&blend_constants,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
unsafe fn cmd_set_stencil_reference(
|
||||||
|
&self,
|
||||||
|
command_buffer: vk::CommandBuffer,
|
||||||
|
face_mask: vk::StencilFaceFlags,
|
||||||
|
reference: u32,
|
||||||
|
) {
|
||||||
|
self.fp_v1_0().cmd_set_stencil_reference(
|
||||||
|
command_buffer,
|
||||||
|
face_mask,
|
||||||
|
reference,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
unsafe fn create_semaphore(
|
unsafe fn create_semaphore(
|
||||||
&self,
|
&self,
|
||||||
create_info: &vk::SemaphoreCreateInfo,
|
create_info: &vk::SemaphoreCreateInfo,
|
||||||
|
|
|
@ -451,7 +451,7 @@ pub mod types {
|
||||||
pub max_resource_size: DeviceSize,
|
pub max_resource_size: DeviceSize,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Hash)]
|
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct Extent3D {
|
pub struct Extent3D {
|
||||||
pub width: uint32_t,
|
pub width: uint32_t,
|
||||||
|
|
Loading…
Add table
Reference in a new issue