PipelineEncoder

Struct PipelineEncoder 

Source
pub struct PipelineEncoder<'a, 'p> { /* private fields */ }

Implementations§

Source§

impl PipelineEncoder<'_, '_>

Source

pub fn bind<D: ShaderData>(&mut self, group: u32, data: &D)

Source§

impl PipelineEncoder<'_, '_>

Source

pub fn dispatch(&mut self, groups: [u32; 3])

Source

pub fn dispatch_indirect(&mut self, indirect_buf: BufferPiece)

Source§

impl PipelineEncoder<'_, '_>

Source

pub fn set_scissor_rect(&mut self, rect: &ScissorRect)

Source

pub fn set_viewport(&mut self, viewport: &Viewport)

Source

pub fn set_stencil_reference(&mut self, reference: u32)

Source§

impl PipelineEncoder<'_, '_>

Source

pub fn bind_vertex(&mut self, index: u32, vertex_buf: BufferPiece)

Source

pub fn draw( &mut self, start_vertex: u32, vertex_count: u32, start_instance: u32, instance_count: u32, )

Source

pub fn draw_indexed( &mut self, index_buf: BufferPiece, index_type: IndexType, index_count: u32, base_vertex: i32, start_instance: u32, instance_count: u32, )

Source

pub fn draw_indirect(&mut self, indirect_buf: BufferPiece)

Source

pub fn draw_indexed_indirect( &mut self, index_buf: BufferPiece, index_type: IndexType, indirect_buf: BufferPiece, )

Trait Implementations§

Source§

impl ComputePipelineEncoder for PipelineEncoder<'_, '_>

Source§

type BufferPiece = BufferPiece

Source§

fn dispatch(&mut self, groups: [u32; 3])

Source§

fn dispatch_indirect(&mut self, indirect_buf: BufferPiece)

Source§

impl PipelineEncoder for PipelineEncoder<'_, '_>

Source§

fn bind<D: ShaderData>(&mut self, group: u32, data: &D)

Source§

impl RenderEncoder for PipelineEncoder<'_, '_>

Source§

fn set_scissor_rect(&mut self, rect: &ScissorRect)

Source§

fn set_viewport(&mut self, viewport: &Viewport)

Source§

fn set_stencil_reference(&mut self, reference: u32)

Source§

impl RenderPipelineEncoder for PipelineEncoder<'_, '_>

Source§

type BufferPiece = BufferPiece

Source§

fn bind_vertex(&mut self, index: u32, vertex_buf: BufferPiece)

Source§

fn draw( &mut self, start_vertex: u32, vertex_count: u32, start_instance: u32, instance_count: u32, )

Source§

fn draw_indexed( &mut self, index_buf: BufferPiece, index_type: IndexType, index_count: u32, base_vertex: i32, start_instance: u32, instance_count: u32, )

Source§

fn draw_indirect(&mut self, indirect_buf: BufferPiece)

Source§

fn draw_indexed_indirect( &mut self, index_buf: BufferPiece, index_type: IndexType, indirect_buf: BufferPiece, )

Auto Trait Implementations§

§

impl<'a, 'p> Freeze for PipelineEncoder<'a, 'p>

§

impl<'a, 'p> RefUnwindSafe for PipelineEncoder<'a, 'p>

§

impl<'a, 'p> Send for PipelineEncoder<'a, 'p>

§

impl<'a, 'p> Sync for PipelineEncoder<'a, 'p>

§

impl<'a, 'p> Unpin for PipelineEncoder<'a, 'p>

§

impl<'a, 'p> !UnwindSafe for PipelineEncoder<'a, 'p>

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.