Struct dacite::core::CommandBuffer
[−]
[src]
pub struct CommandBuffer(_);
See VkCommandBuffer
Methods
impl CommandBuffer
[src]
fn begin(&self, begin_info: &CommandBufferBeginInfo) -> Result<(), Error>
fn end(&self) -> Result<(), Error>
fn reset(&self, flags: CommandBufferResetFlags) -> Result<(), Error>
fn bind_pipeline(
&self,
pipeline_bind_point: PipelineBindPoint,
pipeline: &Pipeline
)
&self,
pipeline_bind_point: PipelineBindPoint,
pipeline: &Pipeline
)
fn set_viewport(&self, first_viewport: u32, viewports: &[Viewport])
See vkCmdSetViewport
fn set_scissor(&self, first_scissor: u32, scissors: &[Rect2D])
See vkCmdSetScissor
fn set_line_width(&self, line_width: f32)
fn set_depth_bias(
&self,
depth_bias_constant_factor: f32,
depth_bias_clamp: f32,
depth_bias_slope_factor: f32
)
&self,
depth_bias_constant_factor: f32,
depth_bias_clamp: f32,
depth_bias_slope_factor: f32
)
fn set_blend_constants(&self, blend_constants: &[f32])
fn set_depth_bounds(&self, min_depth_bounds: f32, max_depth_bounds: f32)
fn set_stencil_compare_mask(
&self,
face_mask: StencilFaceFlags,
compare_mask: u32
)
&self,
face_mask: StencilFaceFlags,
compare_mask: u32
)
fn set_stencil_write_mask(&self, face_mask: StencilFaceFlags, write_mask: u32)
fn set_stencil_reference(&self, face_mask: StencilFaceFlags, reference: u32)
fn bind_descriptor_sets(
&self,
pipeline_bind_point: PipelineBindPoint,
layout: &PipelineLayout,
first_set: u32,
descriptor_sets: &[DescriptorSet],
dynamic_offsets: Option<&[u32]>
)
&self,
pipeline_bind_point: PipelineBindPoint,
layout: &PipelineLayout,
first_set: u32,
descriptor_sets: &[DescriptorSet],
dynamic_offsets: Option<&[u32]>
)
fn bind_index_buffer(&self, buffer: &Buffer, offset: u64, index_type: IndexType)
fn bind_vertex_buffers(
&self,
first_binding: u32,
buffers: &[Buffer],
offsets: &[u64]
)
&self,
first_binding: u32,
buffers: &[Buffer],
offsets: &[u64]
)
fn draw(
&self,
vertex_count: u32,
instance_count: u32,
first_vertex: u32,
first_instance: u32
)
&self,
vertex_count: u32,
instance_count: u32,
first_vertex: u32,
first_instance: u32
)
See vkCmdDraw
fn draw_indexed(
&self,
index_count: u32,
instance_count: u32,
first_index: u32,
vertex_offset: i32,
first_instance: u32
)
&self,
index_count: u32,
instance_count: u32,
first_index: u32,
vertex_offset: i32,
first_instance: u32
)
See vkCmdDrawIndexed
fn draw_indirect(
&self,
buffer: &Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
&self,
buffer: &Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
fn draw_indexed_indirect(
&self,
buffer: &Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
&self,
buffer: &Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
fn dispatch(&self, group_count_x: u32, group_count_y: u32, group_count_z: u32)
See vkCmdDispatch
fn dispatch_indirect(&self, buffer: &Buffer, offset: u64)
fn copy_buffer(
&self,
src_buffer: &Buffer,
dst_buffer: &Buffer,
regions: &[BufferCopy]
)
&self,
src_buffer: &Buffer,
dst_buffer: &Buffer,
regions: &[BufferCopy]
)
See vkCmdCopyBuffer
fn copy_image(
&self,
src_image: &Image,
src_image_layout: ImageLayout,
dst_image: &Image,
dst_image_layout: ImageLayout,
regions: &[ImageCopy]
)
&self,
src_image: &Image,
src_image_layout: ImageLayout,
dst_image: &Image,
dst_image_layout: ImageLayout,
regions: &[ImageCopy]
)
See vkCmdCopyImage
fn blit_image(
&self,
src_image: &Image,
src_image_layout: ImageLayout,
dst_image: &Image,
dst_image_layout: ImageLayout,
regions: &[ImageBlit],
filter: Filter
)
&self,
src_image: &Image,
src_image_layout: ImageLayout,
dst_image: &Image,
dst_image_layout: ImageLayout,
regions: &[ImageBlit],
filter: Filter
)
See vkCmdBlitImage
fn copy_buffer_to_image(
&self,
src_buffer: &Buffer,
dst_image: &Image,
dst_image_layout: ImageLayout,
regions: &[BufferImageCopy]
)
&self,
src_buffer: &Buffer,
dst_image: &Image,
dst_image_layout: ImageLayout,
regions: &[BufferImageCopy]
)
fn copy_image_to_buffer(
&self,
src_image: &Image,
src_image_layout: ImageLayout,
dst_buffer: &Buffer,
regions: &[BufferImageCopy]
)
&self,
src_image: &Image,
src_image_layout: ImageLayout,
dst_buffer: &Buffer,
regions: &[BufferImageCopy]
)
fn update_buffer(&self, dst_buffer: &Buffer, dst_offset: u64, data: &[u8])
fn fill_buffer(
&self,
dst_buffer: &Buffer,
dst_offset: u64,
size: OptionalDeviceSize,
data: u32
)
&self,
dst_buffer: &Buffer,
dst_offset: u64,
size: OptionalDeviceSize,
data: u32
)
See vkCmdFillBuffer
fn clear_color_image(
&self,
image: &Image,
image_layout: ImageLayout,
color: &ClearColorValue,
ranges: &[ImageSubresourceRange]
)
&self,
image: &Image,
image_layout: ImageLayout,
color: &ClearColorValue,
ranges: &[ImageSubresourceRange]
)
fn clear_depth_stencil_image(
&self,
image: &Image,
image_layout: ImageLayout,
depth_stencil: &ClearDepthStencilValue,
ranges: &[ImageSubresourceRange]
)
&self,
image: &Image,
image_layout: ImageLayout,
depth_stencil: &ClearDepthStencilValue,
ranges: &[ImageSubresourceRange]
)
fn clear_attachments(
&self,
attachments: &[ClearAttachment],
rects: &[ClearRect]
)
&self,
attachments: &[ClearAttachment],
rects: &[ClearRect]
)
fn resolve_image(
&self,
src_image: &Image,
src_image_layout: ImageLayout,
dst_image: &Image,
dst_image_layout: ImageLayout,
regions: &[ImageResolve]
)
&self,
src_image: &Image,
src_image_layout: ImageLayout,
dst_image: &Image,
dst_image_layout: ImageLayout,
regions: &[ImageResolve]
)
fn set_event(&self, event: &Event, stage_mask: PipelineStageFlags)
See vkCmdSetEvent
fn reset_event(&self, event: &Event, stage_mask: PipelineStageFlags)
See vkCmdResetEvent
fn wait_events(
&self,
events: &[Event],
src_stage_mask: PipelineStageFlags,
dst_stage_mask: PipelineStageFlags,
memory_barriers: Option<&[MemoryBarrier]>,
buffer_memory_barriers: Option<&[BufferMemoryBarrier]>,
image_memory_barriers: Option<&[ImageMemoryBarrier]>
)
&self,
events: &[Event],
src_stage_mask: PipelineStageFlags,
dst_stage_mask: PipelineStageFlags,
memory_barriers: Option<&[MemoryBarrier]>,
buffer_memory_barriers: Option<&[BufferMemoryBarrier]>,
image_memory_barriers: Option<&[ImageMemoryBarrier]>
)
See vkCmdWaitEvents
fn pipeline_barrier(
&self,
src_stage_mask: PipelineStageFlags,
dst_stage_mask: PipelineStageFlags,
dependency_flags: DependencyFlags,
memory_barriers: Option<&[MemoryBarrier]>,
buffer_memory_barriers: Option<&[BufferMemoryBarrier]>,
image_memory_barriers: Option<&[ImageMemoryBarrier]>
)
&self,
src_stage_mask: PipelineStageFlags,
dst_stage_mask: PipelineStageFlags,
dependency_flags: DependencyFlags,
memory_barriers: Option<&[MemoryBarrier]>,
buffer_memory_barriers: Option<&[BufferMemoryBarrier]>,
image_memory_barriers: Option<&[ImageMemoryBarrier]>
)
fn begin_query(
&self,
query_pool: &QueryPool,
query: u32,
flags: QueryControlFlags
)
&self,
query_pool: &QueryPool,
query: u32,
flags: QueryControlFlags
)
See vkCmdBeginQuery
fn end_query(&self, query_pool: &QueryPool, query: u32)
See vkCmdEndQuery
fn reset_query_pool(
&self,
query_pool: &QueryPool,
first_query: u32,
query_count: u32
)
&self,
query_pool: &QueryPool,
first_query: u32,
query_count: u32
)
fn write_timestamp(
&self,
pipeline_stage: PipelineStageFlagBits,
query_pool: &QueryPool,
query: u32
)
&self,
pipeline_stage: PipelineStageFlagBits,
query_pool: &QueryPool,
query: u32
)
fn copy_query_pool_results(
&self,
query_pool: &QueryPool,
first_query: u32,
query_count: u32,
dst_buffer: &Buffer,
dst_offset: u64,
stride: u64,
flags: QueryResultFlags
)
&self,
query_pool: &QueryPool,
first_query: u32,
query_count: u32,
dst_buffer: &Buffer,
dst_offset: u64,
stride: u64,
flags: QueryResultFlags
)
fn push_constants(
&self,
layout: &PipelineLayout,
stage_flags: ShaderStageFlags,
offset: u32,
values: &[u8]
)
&self,
layout: &PipelineLayout,
stage_flags: ShaderStageFlags,
offset: u32,
values: &[u8]
)
fn begin_render_pass(
&self,
render_pass_begin: &RenderPassBeginInfo,
contents: SubpassContents
)
&self,
render_pass_begin: &RenderPassBeginInfo,
contents: SubpassContents
)
fn next_subpass(&self, contents: SubpassContents)
See vkCmdNextSubpass
fn end_render_pass(&self)
fn execute_commands(&self, command_buffers: &[CommandBuffer])
Trait Implementations
impl Debug for CommandBuffer
[src]
impl Clone for CommandBuffer
[src]
fn clone(&self) -> CommandBuffer
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for CommandBuffer
[src]
fn eq(&self, __arg_0: &CommandBuffer) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CommandBuffer) -> bool
This method tests for !=
.
impl Eq for CommandBuffer
[src]
impl PartialOrd for CommandBuffer
[src]
fn partial_cmp(&self, __arg_0: &CommandBuffer) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &CommandBuffer) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &CommandBuffer) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &CommandBuffer) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &CommandBuffer) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for CommandBuffer
[src]
fn cmp(&self, __arg_0: &CommandBuffer) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Hash for CommandBuffer
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more