Skip to main content

CommandBuffer

Struct CommandBuffer 

Source
pub struct CommandBuffer { /* private fields */ }

Implementations§

Source§

impl CommandBuffer

Source

pub fn handle(&self) -> CommandBuffer

Source

pub fn begin( &self, device: &Device, flags: CommandBufferUsageFlags, ) -> Result<(), Error>

Source

pub fn begin_render_pass( &self, device: &Device, render_pass: &RenderPass, framebuffer: &Framebuffer, clear_values: &[ClearValue], )

Source

pub fn end_render_pass(&self, device: &Device)

Source

pub fn end(&self, device: &Device) -> Result<(), Error>

Source

pub fn bind_graphics_pipeline(&self, device: &Device, pipeline: Pipeline)

Source

pub fn bind_graphics_descriptor_sets( &self, device: &Device, pipeline_layout: PipelineLayout, first_set: u32, descriptor_sets: &[DescriptorSet], )

Source

pub fn bind_vertex_buffer(&self, device: &Device, buffer: Buffer)

Source

pub fn draw(&self, device: &Device, vertex_count: u32)

Source

pub fn set_viewport(&self, device: &Device, viewport: Viewport)

Source

pub fn set_scissor(&self, device: &Device, scissor: Rect2D)

Source

pub fn transition_image_layout( &self, device: &Device, image: Image, old_layout: ImageLayout, new_layout: ImageLayout, aspect_mask: ImageAspectFlags, )

Source

pub fn copy_buffer_to_image( &self, device: &Device, buffer: Buffer, image: Image, width: u32, height: u32, )

Source

pub fn bind_index_buffer( &self, device: &Device, buffer: &RotexBuffer, offset: DeviceSize, index_type: IndexType, )

Source

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.