RenderPassEncoder

Struct RenderPassEncoder 

Source
pub struct RenderPassEncoder<'a, 'b> { /* private fields */ }
Expand description

Command encoder that can encode commands inside render pass.

Implementations§

Source§

impl<'a, 'b> RenderPassEncoder<'a, 'b>

Source

pub fn render_pass(&self) -> &RenderPass

Source

pub fn framebuffer(&self) -> &Framebuffer

Source

pub fn draw(&mut self, vertices: Range<u32>, instances: Range<u32>)

Source

pub fn draw_indexed( &mut self, indices: Range<u32>, vertex_offset: i32, instances: Range<u32>, )

Source

pub fn bind_dynamic_graphics_pipeline( &mut self, pipeline: &mut DynamicGraphicsPipeline, device: &Device, ) -> Result<(), OutOfMemory>

Methods from Deref<Target = EncoderCommon<'b>>§

Source

pub fn scope(&self) -> &'a Scope<'a>

Source

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

Source

pub fn set_scissor(&mut self, scissor: Rect)

Source

pub fn bind_graphics_pipeline(&mut self, pipeline: &GraphicsPipeline)

Source

pub fn bind_compute_pipeline(&mut self, pipeline: &ComputePipeline)

Source

pub fn bind_ray_tracing_pipeline(&mut self, pipeline: &RayTracingPipeline)

Source

pub fn bind_vertex_buffers(&mut self, first: u32, buffers: &[(&Buffer, u64)])

Source

pub fn bind_index_buffer( &mut self, buffer: &Buffer, offset: u64, index_type: IndexType, )

Source

pub fn bind_graphics_descriptor_sets( &mut self, layout: &PipelineLayout, first_set: u32, sets: &[&DescriptorSet], dynamic_offsets: &[u32], )

Source

pub fn bind_graphics_descriptors<P, const N: u32>( &mut self, layout: &P, descriptors: &impl UpdatedPipelineDescriptors<P, N>, )

Source

pub fn bind_compute_descriptor_sets( &mut self, layout: &PipelineLayout, first_set: u32, sets: &[&DescriptorSet], dynamic_offsets: &[u32], )

Source

pub fn bind_compute_descriptors<P, const N: u32>( &mut self, layout: &P, descriptors: &impl UpdatedPipelineDescriptors<P, N>, )

Source

pub fn bind_ray_tracing_descriptor_sets( &mut self, layout: &PipelineLayout, first_set: u32, sets: &[&DescriptorSet], dynamic_offsets: &[u32], )

Source

pub fn bind_ray_tracing_descriptors<P, const N: u32>( &mut self, layout: &P, descriptors: &impl UpdatedPipelineDescriptors<P, N>, )

Source

pub fn push_constants_pod<T>( &mut self, layout: &PipelineLayout, stages: ShaderStageFlags, offset: u32, data: &[T], )
where T: Pod,

Source

pub fn push_constants<P>( &mut self, layout: &P, constants: &impl PipelinePushConstants<P>, )

Trait Implementations§

Source§

impl<'a, 'b> Debug for RenderPassEncoder<'a, 'b>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, 'b> Deref for RenderPassEncoder<'a, 'b>

Source§

type Target = EncoderCommon<'b>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &EncoderCommon<'b>

Dereferences the value.
Source§

impl<'a, 'b> DerefMut for RenderPassEncoder<'a, 'b>

Source§

fn deref_mut(&mut self) -> &mut EncoderCommon<'b>

Mutably dereferences the value.
Source§

impl Drop for RenderPassEncoder<'_, '_>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<'a, 'b> Freeze for RenderPassEncoder<'a, 'b>

§

impl<'a, 'b> !RefUnwindSafe for RenderPassEncoder<'a, 'b>

§

impl<'a, 'b> !Send for RenderPassEncoder<'a, 'b>

§

impl<'a, 'b> !Sync for RenderPassEncoder<'a, 'b>

§

impl<'a, 'b> Unpin for RenderPassEncoder<'a, 'b>

§

impl<'a, 'b> !UnwindSafe for RenderPassEncoder<'a, 'b>

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.