[−][src]Struct amethyst_rendy::rendy::hal::command::RenderPassInlineEncoder
An object that records commands into a command buffer inline, that is, without secondary command buffers.
Methods
impl<'a, B> RenderPassInlineEncoder<'a, B> where
B: Backend,
[src]
B: Backend,
pub unsafe fn new<C, T, S>(
cmd_buffer: &'a mut CommandBuffer<B, C, S, Primary, <B as Backend>::CommandBuffer>,
render_pass: &<B as Backend>::RenderPass,
frame_buffer: &<B as Backend>::Framebuffer,
render_area: Rect,
clear_values: T
) -> RenderPassInlineEncoder<'a, B> where
C: Supports<Graphics>,
S: Shot,
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<ClearValue>,
[src]
cmd_buffer: &'a mut CommandBuffer<B, C, S, Primary, <B as Backend>::CommandBuffer>,
render_pass: &<B as Backend>::RenderPass,
frame_buffer: &<B as Backend>::Framebuffer,
render_area: Rect,
clear_values: T
) -> RenderPassInlineEncoder<'a, B> where
C: Supports<Graphics>,
S: Shot,
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<ClearValue>,
Creates a new RenderPassInlineEncoder
, starting a new render
pass in the given CommandBuffer
.
pub fn next_subpass_inline(self) -> RenderPassInlineEncoder<'a, B>
[src]
Start the next subpass.
pub fn next_subpass_secondary(self) -> RenderPassSecondaryEncoder<'a, B>
[src]
Begins recording a new subpass with secondary buffers.
Methods from Deref<Target = RenderSubpassCommon<B, &'a mut <B as Backend>::CommandBuffer>>
pub unsafe fn clear_attachments<T, U>(&mut self, clears: T, rects: U) where
T: IntoIterator,
U: IntoIterator,
<T as IntoIterator>::Item: Borrow<AttachmentClear>,
<U as IntoIterator>::Item: Borrow<ClearRect>,
[src]
T: IntoIterator,
U: IntoIterator,
<T as IntoIterator>::Item: Borrow<AttachmentClear>,
<U as IntoIterator>::Item: Borrow<ClearRect>,
pub unsafe fn draw(&mut self, vertices: Range<u32>, instances: Range<u32>)
[src]
pub unsafe 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>
)
pub unsafe fn draw_indirect(
&mut self,
buffer: &<B as Backend>::Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
[src]
&mut self,
buffer: &<B as Backend>::Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
pub unsafe fn draw_indexed_indirect(
&mut self,
buffer: &<B as Backend>::Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
[src]
&mut self,
buffer: &<B as Backend>::Buffer,
offset: u64,
draw_count: u32,
stride: u32
)
pub unsafe fn bind_index_buffer(&mut self, ibv: IndexBufferView<B>)
[src]
pub unsafe fn bind_vertex_buffers<I, T>(
&mut self,
first_binding: u32,
buffers: I
) where
I: IntoIterator<Item = (T, u64)>,
T: Borrow<<B as Backend>::Buffer>,
[src]
&mut self,
first_binding: u32,
buffers: I
) where
I: IntoIterator<Item = (T, u64)>,
T: Borrow<<B as Backend>::Buffer>,
pub unsafe fn bind_graphics_pipeline(
&mut self,
pipeline: &<B as Backend>::GraphicsPipeline
)
[src]
&mut self,
pipeline: &<B as Backend>::GraphicsPipeline
)
pub unsafe fn bind_graphics_descriptor_sets<I, J>(
&mut self,
layout: &<B as Backend>::PipelineLayout,
first_set: usize,
sets: I,
offsets: J
) where
I: IntoIterator,
J: IntoIterator,
<I as IntoIterator>::Item: Borrow<<B as Backend>::DescriptorSet>,
<J as IntoIterator>::Item: Borrow<u32>,
[src]
&mut self,
layout: &<B as Backend>::PipelineLayout,
first_set: usize,
sets: I,
offsets: J
) where
I: IntoIterator,
J: IntoIterator,
<I as IntoIterator>::Item: Borrow<<B as Backend>::DescriptorSet>,
<J as IntoIterator>::Item: Borrow<u32>,
pub unsafe fn set_viewports<T>(&mut self, first_viewport: u32, viewports: T) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<Viewport>,
[src]
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<Viewport>,
pub unsafe fn set_scissors<T>(&mut self, first_scissor: u32, scissors: T) where
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<Rect>,
[src]
T: IntoIterator,
<T as IntoIterator>::Item: Borrow<Rect>,
pub unsafe fn set_stencil_reference(&mut self, faces: Face, value: u32)
[src]
pub unsafe fn set_stencil_read_mask(&mut self, faces: Face, value: u32)
[src]
pub unsafe fn set_stencil_write_mask(&mut self, faces: Face, value: u32)
[src]
pub unsafe fn set_blend_constants(&mut self, cv: [f32; 4])
[src]
pub unsafe fn set_depth_bounds(&mut self, bounds: Range<f32>)
[src]
pub unsafe fn push_graphics_constants(
&mut self,
layout: &<B as Backend>::PipelineLayout,
stages: ShaderStageFlags,
offset: u32,
constants: &[u32]
)
[src]
&mut self,
layout: &<B as Backend>::PipelineLayout,
stages: ShaderStageFlags,
offset: u32,
constants: &[u32]
)
pub unsafe fn set_line_width(&mut self, width: f32)
[src]
pub unsafe fn set_depth_bias(&mut self, depth_bias: DepthBias)
[src]
pub unsafe fn begin_query(&mut self, query: Query<B>, flags: ControlFlags)
[src]
pub unsafe fn end_query(&mut self, query: Query<B>)
[src]
pub unsafe fn write_timestamp(&mut self, stage: PipelineStage, query: Query<B>)
[src]
Trait Implementations
impl<'a, B> Debug for RenderPassInlineEncoder<'a, B> where
B: Backend + Debug,
<B as Backend>::CommandBuffer: 'a,
<B as Backend>::CommandBuffer: Debug,
[src]
B: Backend + Debug,
<B as Backend>::CommandBuffer: 'a,
<B as Backend>::CommandBuffer: Debug,
impl<'a, B> Deref for RenderPassInlineEncoder<'a, B> where
B: Backend,
[src]
B: Backend,
type Target = RenderSubpassCommon<B, &'a mut <B as Backend>::CommandBuffer>
The resulting type after dereferencing.
fn deref(&self) -> &<RenderPassInlineEncoder<'a, B> as Deref>::Target
[src]
impl<'a, B> Drop for RenderPassInlineEncoder<'a, B> where
B: Backend,
[src]
B: Backend,
impl<'a, B> DerefMut for RenderPassInlineEncoder<'a, B> where
B: Backend,
[src]
B: Backend,
fn deref_mut(
&mut self
) -> &mut <RenderPassInlineEncoder<'a, B> as Deref>::Target
[src]
&mut self
) -> &mut <RenderPassInlineEncoder<'a, B> as Deref>::Target
Auto Trait Implementations
impl<'a, B> Unpin for RenderPassInlineEncoder<'a, B> where
B: Unpin,
B: Unpin,
impl<'a, B> Sync for RenderPassInlineEncoder<'a, B> where
<B as Backend>::CommandBuffer: Sync,
<B as Backend>::CommandBuffer: Sync,
impl<'a, B> Send for RenderPassInlineEncoder<'a, B> where
<B as Backend>::CommandBuffer: Send,
<B as Backend>::CommandBuffer: Send,
impl<'a, B> !UnwindSafe for RenderPassInlineEncoder<'a, B>
impl<'a, B> RefUnwindSafe for RenderPassInlineEncoder<'a, B> where
B: RefUnwindSafe,
<B as Backend>::CommandBuffer: RefUnwindSafe,
B: RefUnwindSafe,
<B as Backend>::CommandBuffer: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
Convert the source color to the destination color using the bradford method by default Read more
impl<T> SetParameter for T
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> Supports<T> for T
[src]
impl<T> Erased for T
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> Any for T where
T: Any,
[src]
T: Any,
fn get_type_id(&self) -> TypeId
[src]
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,