pub struct CommandBuffer { /* private fields */ }Implementations§
Source§impl CommandBuffer
impl CommandBuffer
pub fn handle(&self) -> CommandBuffer
pub fn begin( &self, device: &Device, flags: CommandBufferUsageFlags, ) -> Result<(), Error>
pub fn begin_render_pass( &self, device: &Device, render_pass: &RenderPass, framebuffer: &Framebuffer, clear_values: &[ClearValue], )
pub fn end_render_pass(&self, device: &Device)
pub fn end(&self, device: &Device) -> Result<(), Error>
pub fn bind_graphics_pipeline(&self, device: &Device, pipeline: Pipeline)
pub fn bind_graphics_descriptor_sets( &self, device: &Device, pipeline_layout: PipelineLayout, first_set: u32, descriptor_sets: &[DescriptorSet], )
pub fn bind_vertex_buffer(&self, device: &Device, buffer: Buffer)
pub fn draw(&self, device: &Device, vertex_count: u32)
pub fn set_viewport(&self, device: &Device, viewport: Viewport)
pub fn set_scissor(&self, device: &Device, scissor: Rect2D)
pub fn transition_image_layout( &self, device: &Device, image: Image, old_layout: ImageLayout, new_layout: ImageLayout, aspect_mask: ImageAspectFlags, )
pub fn copy_buffer_to_image( &self, device: &Device, buffer: Buffer, image: Image, width: u32, height: u32, )
pub fn bind_index_buffer( &self, device: &Device, buffer: &RotexBuffer, offset: DeviceSize, index_type: IndexType, )
pub fn draw_indexed( &self, device: &Device, index_count: u32, instance_count: u32, first_index: u32, vertex_offset: i32, first_instance: u32, )
Auto Trait Implementations§
impl Freeze for CommandBuffer
impl RefUnwindSafe for CommandBuffer
impl Send for CommandBuffer
impl Sync for CommandBuffer
impl Unpin for CommandBuffer
impl UnsafeUnpin for CommandBuffer
impl UnwindSafe for CommandBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more