[]Struct amethyst_rendy::rendy::hal::command::SubpassCommandBuffer

pub struct SubpassCommandBuffer<B, S, R = <B as Backend>::CommandBuffer>(_, _)
where
    B: Backend,
    S: Shot
;

A secondary command buffer recorded entirely within a subpass.

Implementations

impl<B, S> SubpassCommandBuffer<B, S, <B as Backend>::CommandBuffer> where
    B: Backend,
    S: Shot

pub unsafe fn new(
    raw: <B as Backend>::CommandBuffer
) -> SubpassCommandBuffer<B, S, <B as Backend>::CommandBuffer>

Wraps the given CommandBuffer in a SubpassCommandBuffer, starting to record a new subpass.

pub unsafe fn finish(&mut self)

Finish recording commands to the command buffer.

The command pool must be reset to able to re-record commands.

impl<B> SubpassCommandBuffer<B, OneShot, <B as Backend>::CommandBuffer> where
    B: Backend

pub unsafe fn begin(
    &mut self,
    subpass: Subpass<'a, B>,
    framebuffer: Option<&'a <B as Backend>::Framebuffer>
)

Begin recording a one-shot sub-pass command buffer.

impl<B> SubpassCommandBuffer<B, MultiShot, <B as Backend>::CommandBuffer> where
    B: Backend

pub unsafe fn begin(
    &mut self,
    allow_pending_resubmit: bool,
    subpass: Subpass<'a, B>,
    framebuffer: Option<&'a <B as Backend>::Framebuffer>
)

Begin recording a one-shot sub-pass command buffer.

Methods from Deref<Target = RenderSubpassCommon<B, <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>, 

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

pub unsafe fn draw_indexed(
    &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
)

pub unsafe fn draw_indexed_indirect(
    &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>)

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>, 

pub unsafe fn bind_graphics_pipeline(
    &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>, 

pub unsafe fn set_viewports<T>(&mut self, first_viewport: u32, viewports: T) where
    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>, 

pub unsafe fn set_stencil_reference(&mut self, faces: Face, value: u32)

pub unsafe fn set_stencil_read_mask(&mut self, faces: Face, value: u32)

pub unsafe fn set_stencil_write_mask(&mut self, faces: Face, value: u32)

pub unsafe fn set_blend_constants(&mut self, cv: [f32; 4])

pub unsafe fn set_depth_bounds(&mut self, bounds: Range<f32>)

pub unsafe fn push_graphics_constants(
    &mut self,
    layout: &<B as Backend>::PipelineLayout,
    stages: ShaderStageFlags,
    offset: u32,
    constants: &[u32]
)

pub unsafe fn set_line_width(&mut self, width: f32)

pub unsafe fn set_depth_bias(&mut self, depth_bias: DepthBias)

pub unsafe fn begin_query(&mut self, query: Query<B>, flags: ControlFlags)

pub unsafe fn end_query(&mut self, query: Query<B>)

pub unsafe fn write_timestamp(&mut self, stage: PipelineStage, query: Query<B>)

Trait Implementations

impl<B, S, R> Borrow<R> for SubpassCommandBuffer<B, S, R> where
    B: Backend<CommandBuffer = R>,
    R: RawCommandBuffer<B>,
    S: Shot

impl<B, S, R> Debug for SubpassCommandBuffer<B, S, R> where
    B: Backend + Debug,
    R: Debug,
    S: Shot + Debug

impl<B, S> Deref for SubpassCommandBuffer<B, S, <B as Backend>::CommandBuffer> where
    B: Backend,
    S: Shot

type Target = RenderSubpassCommon<B, <B as Backend>::CommandBuffer>

The resulting type after dereferencing.

impl<B, S> DerefMut for SubpassCommandBuffer<B, S, <B as Backend>::CommandBuffer> where
    B: Backend,
    S: Shot

impl<B, S> IntoRawCommandBuffer<B, Graphics> for SubpassCommandBuffer<B, S, <B as Backend>::CommandBuffer> where
    B: Backend,
    S: Shot

impl<B, C, S> Submittable<B, C, Secondary> for SubpassCommandBuffer<B, S, <B as Backend>::CommandBuffer> where
    B: Backend,
    C: Capability + Supports<Graphics>,
    S: Shot

Auto Trait Implementations

impl<B, S, R> RefUnwindSafe for SubpassCommandBuffer<B, S, R> where
    B: RefUnwindSafe,
    R: RefUnwindSafe,
    S: RefUnwindSafe

impl<B, S, R> Send for SubpassCommandBuffer<B, S, R> where
    R: Send,
    S: Send

impl<B, S, R> Sync for SubpassCommandBuffer<B, S, R> where
    R: Sync,
    S: Sync

impl<B, S, R> Unpin for SubpassCommandBuffer<B, S, R> where
    B: Unpin,
    R: Unpin,
    S: Unpin

impl<B, S, R> UnwindSafe for SubpassCommandBuffer<B, S, R> where
    B: UnwindSafe,
    R: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

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]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> Supports<T> for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,