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>
impl<'a, 'b> RenderPassEncoder<'a, 'b>
pub fn render_pass(&self) -> &RenderPass
pub fn framebuffer(&self) -> &Framebuffer
pub fn draw(&mut self, vertices: Range<u32>, instances: Range<u32>)
pub fn draw_indexed( &mut self, indices: Range<u32>, vertex_offset: i32, instances: Range<u32>, )
pub fn bind_dynamic_graphics_pipeline( &mut self, pipeline: &mut DynamicGraphicsPipeline, device: &Device, ) -> Result<(), OutOfMemory>
Methods from Deref<Target = EncoderCommon<'b>>§
pub fn scope(&self) -> &'a Scope<'a>
pub fn set_viewport(&mut self, viewport: Viewport)
pub fn set_scissor(&mut self, scissor: Rect)
pub fn bind_graphics_pipeline(&mut self, pipeline: &GraphicsPipeline)
pub fn bind_compute_pipeline(&mut self, pipeline: &ComputePipeline)
pub fn bind_ray_tracing_pipeline(&mut self, pipeline: &RayTracingPipeline)
pub fn bind_vertex_buffers(&mut self, first: u32, buffers: &[(&Buffer, u64)])
pub fn bind_index_buffer( &mut self, buffer: &Buffer, offset: u64, index_type: IndexType, )
pub fn bind_graphics_descriptor_sets( &mut self, layout: &PipelineLayout, first_set: u32, sets: &[&DescriptorSet], dynamic_offsets: &[u32], )
pub fn bind_graphics_descriptors<P, const N: u32>(
&mut self,
layout: &P,
descriptors: &impl UpdatedPipelineDescriptors<P, N>,
)where
P: PipelineInputLayout,
pub fn bind_compute_descriptor_sets( &mut self, layout: &PipelineLayout, first_set: u32, sets: &[&DescriptorSet], dynamic_offsets: &[u32], )
pub fn bind_compute_descriptors<P, const N: u32>(
&mut self,
layout: &P,
descriptors: &impl UpdatedPipelineDescriptors<P, N>,
)where
P: PipelineInputLayout,
pub fn bind_ray_tracing_descriptor_sets( &mut self, layout: &PipelineLayout, first_set: u32, sets: &[&DescriptorSet], dynamic_offsets: &[u32], )
pub fn bind_ray_tracing_descriptors<P, const N: u32>(
&mut self,
layout: &P,
descriptors: &impl UpdatedPipelineDescriptors<P, N>,
)where
P: PipelineInputLayout,
pub fn push_constants_pod<T>(
&mut self,
layout: &PipelineLayout,
stages: ShaderStageFlags,
offset: u32,
data: &[T],
)where
T: Pod,
pub fn push_constants<P>(
&mut self,
layout: &P,
constants: &impl PipelinePushConstants<P>,
)where
P: PipelineInputLayout,
Trait Implementations§
Source§impl<'a, 'b> Debug for RenderPassEncoder<'a, 'b>
impl<'a, 'b> Debug for RenderPassEncoder<'a, 'b>
Source§impl<'a, 'b> Deref for RenderPassEncoder<'a, 'b>
impl<'a, 'b> Deref for RenderPassEncoder<'a, 'b>
Source§type Target = EncoderCommon<'b>
type Target = EncoderCommon<'b>
The resulting type after dereferencing.
Source§fn deref(&self) -> &EncoderCommon<'b>
fn deref(&self) -> &EncoderCommon<'b>
Dereferences the value.
Source§impl<'a, 'b> DerefMut for RenderPassEncoder<'a, 'b>
impl<'a, 'b> DerefMut for RenderPassEncoder<'a, 'b>
Source§fn deref_mut(&mut self) -> &mut EncoderCommon<'b>
fn deref_mut(&mut self) -> &mut EncoderCommon<'b>
Mutably dereferences the value.
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> 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