[−][src]Struct rendy_command::RenderPassEncoder
Special encoder to record render-pass commands.
Methods
impl<'a, B> RenderPassEncoder<'a, B> where
B: Backend,
[src]
B: Backend,
pub fn draw(&mut self, vertices: Range<u32>, instances: Range<u32>)
[src]
Draw.
pub fn draw_indexed(
&mut self,
indices: Range<u32>,
base_vertex: i32,
instances: Range<u32>
)
[src]
&mut self,
indices: Range<u32>,
base_vertex: i32,
instances: Range<u32>
)
Draw indexed.
pub fn draw_indirect(
&mut self,
buffer: &B::Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
[src]
&mut self,
buffer: &B::Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
Draw indirect.
Similar to draw
except takes vertices and indices from buffer
at specified offset
.
buffer
must contain draw_count
of DrawCommand
starting from offset
with stride
bytes between each.
pub fn draw_indexed_indirect(
&mut self,
buffer: &B::Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
[src]
&mut self,
buffer: &B::Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
Draw indirect.
Similar to draw
except takes vertices and indices from buffer
at specified offset
.
buffer
must contain draw_count
of DrawCommand
starting from offset
with stride
bytes between each.
pub fn reborrow(&mut self) -> RenderPassEncoder<B>
[src]
Reborrow encoder.
Methods from Deref<Target = EncoderCommon<'a, B, Graphics>>
pub fn bind_index_buffer<'b>(
&mut self,
buffer: &'b B::Buffer,
offset: u64,
index_type: IndexType
) where
C: Supports<Graphics>,
[src]
&mut self,
buffer: &'b B::Buffer,
offset: u64,
index_type: IndexType
) where
C: Supports<Graphics>,
Bind index buffer.
pub fn bind_vertex_buffers<'b>(
&mut self,
first_binding: u32,
buffers: impl IntoIterator<Item = (&'b B::Buffer, u64)>
) where
C: Supports<Graphics>,
[src]
&mut self,
first_binding: u32,
buffers: impl IntoIterator<Item = (&'b B::Buffer, u64)>
) where
C: Supports<Graphics>,
Bind vertex buffers.
pub fn bind_graphics_pipeline(&mut self, pipeline: &B::GraphicsPipeline) where
C: Supports<Graphics>,
[src]
C: Supports<Graphics>,
Bind graphics pipeline.
pub fn bind_graphics_descriptor_sets<'b>(
&mut self,
layout: &B::PipelineLayout,
first_set: u32,
sets: impl IntoIterator<Item = &'b B::DescriptorSet>,
offsets: impl IntoIterator<Item = u32>
) where
C: Supports<Graphics>,
[src]
&mut self,
layout: &B::PipelineLayout,
first_set: u32,
sets: impl IntoIterator<Item = &'b B::DescriptorSet>,
offsets: impl IntoIterator<Item = u32>
) where
C: Supports<Graphics>,
Bind descriptor sets to graphics pipeline.
pub fn bind_compute_pipeline(&mut self, pipeline: &B::ComputePipeline) where
C: Supports<Compute>,
[src]
C: Supports<Compute>,
Bind graphics pipeline.
pub fn bind_compute_descriptor_sets<'b>(
&mut self,
layout: &B::PipelineLayout,
first_set: u32,
sets: impl IntoIterator<Item = &'b B::DescriptorSet>,
offsets: impl IntoIterator<Item = u32>
) where
C: Supports<Compute>,
[src]
&mut self,
layout: &B::PipelineLayout,
first_set: u32,
sets: impl IntoIterator<Item = &'b B::DescriptorSet>,
offsets: impl IntoIterator<Item = u32>
) where
C: Supports<Compute>,
Bind descriptor sets to compute pipeline.
pub fn pipeline_barrier<'b>(
&mut self,
stages: Range<PipelineStage>,
dependencies: Dependencies,
barriers: impl IntoIterator<Item = Barrier<'b, B>>
)
[src]
&mut self,
stages: Range<PipelineStage>,
dependencies: Dependencies,
barriers: impl IntoIterator<Item = Barrier<'b, B>>
)
Insert pipeline barrier.
pub fn push_constants<'b>(
&mut self,
layout: &B::PipelineLayout,
stages: ShaderStageFlags,
offset: u32,
constants: &[u32]
)
[src]
&mut self,
layout: &B::PipelineLayout,
stages: ShaderStageFlags,
offset: u32,
constants: &[u32]
)
Push graphics constants.
pub fn reborrow<K>(&mut self) -> EncoderCommon<B, K> where
C: Supports<K>,
[src]
C: Supports<K>,
Reborrow encoder.
Trait Implementations
impl<'a, B: Debug + Backend> Debug for RenderPassEncoder<'a, B>
[src]
impl<'a, B> Deref for RenderPassEncoder<'a, B> where
B: Backend,
[src]
B: Backend,
type Target = EncoderCommon<'a, B, Graphics>
The resulting type after dereferencing.
fn deref(&self) -> &EncoderCommon<'a, B, Graphics>
[src]
impl<'a, B> DerefMut for RenderPassEncoder<'a, B> where
B: Backend,
[src]
B: Backend,
fn deref_mut(&mut self) -> &mut EncoderCommon<'a, B, Graphics>
[src]
Auto Trait Implementations
impl<'a, B> Send for RenderPassEncoder<'a, B> where
<B as Backend>::CommandBuffer: Send,
<B as Backend>::CommandBuffer: Send,
impl<'a, B> Sync for RenderPassEncoder<'a, B> where
<B as Backend>::CommandBuffer: Sync,
<B as Backend>::CommandBuffer: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.