[][src]Struct amethyst_rendy::rendy::hal::command::CommandBuffer

pub struct CommandBuffer<B, C, S = OneShot, L = Primary, R = <B as Backend>::CommandBuffer> where
    B: Backend
{ /* fields omitted */ }

A strongly-typed command buffer that will only implement methods that are valid for the operations it supports.

Methods

impl<B, C, S, L> CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer> where
    B: Backend,
    C: Supports<Compute>,
    L: Level,
    S: Shot
[src]

pub unsafe fn bind_compute_pipeline(
    &mut self,
    pipeline: &<B as Backend>::ComputePipeline
)
[src]

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn bind_compute_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]

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn dispatch(&mut self, count: [u32; 3])[src]

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn dispatch_indirect(
    &mut self,
    buffer: &<B as Backend>::Buffer,
    offset: u64
)
[src]

Identical to the RawCommandBuffer method of the same name.

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

Identical to the RawCommandBuffer method of the same name.

impl<B, C, S, L> CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer> where
    B: Backend,
    C: Supports<Graphics>,
    L: Level,
    S: Shot
[src]

pub unsafe fn clear_image<T>(
    &mut self,
    image: &<B as Backend>::Image,
    layout: Layout,
    color: ClearColor,
    depth_stencil: ClearDepthStencil,
    subresource_ranges: T
) where
    T: IntoIterator,
    <T as IntoIterator>::Item: Borrow<SubresourceRange>, 
[src]

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn bind_index_buffer(&mut self, ibv: IndexBufferView<B>)[src]

Identical to the RawCommandBuffer method of the same name.

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]

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn bind_graphics_pipeline(
    &mut self,
    pipeline: &<B as Backend>::GraphicsPipeline
)
[src]

Identical to the RawCommandBuffer method of the same name.

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]

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn set_viewports<T>(&mut self, first_viewport: u32, viewports: T) where
    T: IntoIterator,
    <T as IntoIterator>::Item: Borrow<Viewport>, 
[src]

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn set_scissors<T>(&mut self, first_scissor: u32, scissors: T) where
    T: IntoIterator,
    <T as IntoIterator>::Item: Borrow<Rect>, 
[src]

Identical to the RawCommandBuffer method of the same name.

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

Identical to the RawCommandBuffer method of the same name.

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

Identical to the RawCommandBuffer method of the same name.

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

Identical to the RawCommandBuffer method of the same name.

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

Identical to the RawCommandBuffer method of the same name.

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

Identical to the RawCommandBuffer method of the same name.

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

Identical to the RawCommandBuffer method of the same name.

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

Identical to the RawCommandBuffer method of the same name.

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

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn resolve_image<T>(
    &mut self,
    src: &<B as Backend>::Image,
    src_layout: Layout,
    dst: &<B as Backend>::Image,
    dst_layout: Layout,
    regions: T
) where
    T: IntoIterator,
    <T as IntoIterator>::Item: Borrow<ImageResolve>, 
[src]

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn blit_image<T>(
    &mut self,
    src: &<B as Backend>::Image,
    src_layout: Layout,
    dst: &<B as Backend>::Image,
    dst_layout: Layout,
    filter: Filter,
    regions: T
) where
    T: IntoIterator,
    <T as IntoIterator>::Item: Borrow<ImageBlit>, 
[src]

Identical to the RawCommandBuffer method of the same name.

impl<B, C, S> CommandBuffer<B, C, S, Primary, <B as Backend>::CommandBuffer> where
    B: Backend,
    C: Supports<Graphics>,
    S: Shot
[src]

pub unsafe fn begin_render_pass_inline<T>(
    &mut self,
    render_pass: &<B as Backend>::RenderPass,
    frame_buffer: &<B as Backend>::Framebuffer,
    render_area: Rect,
    clear_values: T
) -> RenderPassInlineEncoder<B> where
    T: IntoIterator,
    <T as IntoIterator>::Item: Borrow<ClearValue>, 
[src]

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn begin_render_pass_secondary<T>(
    &mut self,
    render_pass: &<B as Backend>::RenderPass,
    frame_buffer: &<B as Backend>::Framebuffer,
    render_area: Rect,
    clear_values: T
) -> RenderPassSecondaryEncoder<B> where
    T: IntoIterator,
    <T as IntoIterator>::Item: Borrow<ClearValue>, 
[src]

Creates a new secondary render pass.

impl<B, C, S, L> CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer> where
    B: Backend,
    C: Supports<GraphicsOrCompute>,
    L: Level,
    S: Shot
[src]

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

Identical to the RawCommandBuffer method of the same name.

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

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn reset_query_pool(
    &mut self,
    pool: &<B as Backend>::QueryPool,
    queries: Range<u32>
)
[src]

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn copy_query_pool_results(
    &mut self,
    pool: &<B as Backend>::QueryPool,
    queries: Range<u32>,
    buffer: &<B as Backend>::Buffer,
    offset: u64,
    stride: u64,
    flags: ResultFlags
)
[src]

Identical to the RawCommandBuffer method of the same name.

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

Identical to the RawCommandBuffer method of the same name.

impl<B, C, S, L> CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer> where
    B: Backend,
    C: Supports<Transfer>,
    L: Level,
    S: Shot
[src]

pub unsafe fn pipeline_barrier<'i, T>(
    &mut self,
    stages: Range<PipelineStage>,
    dependencies: Dependencies,
    barriers: T
) where
    T: IntoIterator,
    <T as IntoIterator>::Item: Borrow<Barrier<'i, B>>, 
[src]

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn fill_buffer<R>(
    &mut self,
    buffer: &<B as Backend>::Buffer,
    range: R,
    data: u32
) where
    R: RangeArg<u64>, 
[src]

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn copy_buffer<T>(
    &mut self,
    src: &<B as Backend>::Buffer,
    dst: &<B as Backend>::Buffer,
    regions: T
) where
    T: IntoIterator,
    <T as IntoIterator>::Item: Borrow<BufferCopy>, 
[src]

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn update_buffer(
    &mut self,
    buffer: &<B as Backend>::Buffer,
    offset: u64,
    data: &[u8]
)
[src]

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn copy_image<T>(
    &mut self,
    src: &<B as Backend>::Image,
    src_layout: Layout,
    dst: &<B as Backend>::Image,
    dst_layout: Layout,
    regions: T
) where
    T: IntoIterator,
    <T as IntoIterator>::Item: Borrow<ImageCopy>, 
[src]

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn copy_buffer_to_image<T>(
    &mut self,
    src: &<B as Backend>::Buffer,
    dst: &<B as Backend>::Image,
    dst_layout: Layout,
    regions: T
) where
    T: IntoIterator,
    <T as IntoIterator>::Item: Borrow<BufferImageCopy>, 
[src]

Identical to the RawCommandBuffer method of the same name.

pub unsafe fn copy_image_to_buffer<T>(
    &mut self,
    src: &<B as Backend>::Image,
    src_layout: Layout,
    dst: &<B as Backend>::Buffer,
    regions: T
) where
    T: IntoIterator,
    <T as IntoIterator>::Item: Borrow<BufferImageCopy>, 
[src]

Identical to the RawCommandBuffer method of the same name.

impl<B, C> CommandBuffer<B, C, OneShot, Primary, <B as Backend>::CommandBuffer> where
    B: Backend
[src]

pub unsafe fn begin(&mut self)[src]

Begin recording a one-shot primary command buffer.

impl<B, C> CommandBuffer<B, C, MultiShot, Primary, <B as Backend>::CommandBuffer> where
    B: Backend
[src]

pub unsafe fn begin(&mut self, allow_pending_resubmit: bool)[src]

Begin recording a multi-shot primary command buffer.

impl<B, C> CommandBuffer<B, C, OneShot, Secondary, <B as Backend>::CommandBuffer> where
    B: Backend
[src]

pub unsafe fn begin(&mut self, inheritance: CommandBufferInheritanceInfo<B>)[src]

Begin recording a one-shot secondary command buffer.

impl<B, C> CommandBuffer<B, C, MultiShot, Secondary, <B as Backend>::CommandBuffer> where
    B: Backend
[src]

pub unsafe fn begin(
    &mut self,
    allow_pending_resubmit: bool,
    inheritance: CommandBufferInheritanceInfo<B>
)
[src]

Begin recording a multi-shot secondary command buffer.

impl<B, C, S, L> CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer> where
    B: Backend,
    L: Level,
    S: Shot
[src]

pub unsafe fn new(
    raw: <B as Backend>::CommandBuffer
) -> CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer>
[src]

Create a new typed command buffer from a raw command pool.

pub unsafe fn finish(&mut self)[src]

Finish recording commands to the command buffers.

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

pub unsafe fn reset(&mut self, release_resources: bool)[src]

Empties the command buffer, optionally releasing all resources from the commands that have been submitted. The command buffer is moved back to the "initial" state.

The command buffer must not be in the "pending" state. Additionally, the command pool must have been created with the RESET_INDIVIDUAL flag to be able to reset individual buffers.

pub unsafe fn downgrade<D>(
    &mut self
) -> &mut CommandBuffer<B, D, S, Primary, <B as Backend>::CommandBuffer> where
    C: Supports<D>, 
[src]

Downgrade a command buffer to a lesser capability type.

impl<B, C, S> CommandBuffer<B, C, S, Primary, <B as Backend>::CommandBuffer> where
    B: Backend,
    S: Shot
[src]

pub unsafe fn execute_commands<'a, I, T, K>(&mut self, cmd_buffers: I) where
    C: Supports<K>,
    I: IntoIterator<Item = &'a T>,
    K: Capability,
    T: 'a + Submittable<B, K, Secondary>, 
[src]

Identical to the RawCommandBuffer method of the same name.

Trait Implementations

impl<B, C, S, L, R> Debug for CommandBuffer<B, C, S, L, R> where
    B: Backend + Debug,
    C: Debug,
    L: Debug,
    R: Debug,
    S: Debug
[src]

impl<B, C, K, S, L> Submittable<B, K, L> for CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer> where
    B: Backend,
    K: Capability + Supports<C>,
    L: Level
[src]

impl<B, C, S, L, R> Borrow<R> for CommandBuffer<B, C, S, L, R> where
    B: Backend<CommandBuffer = R>,
    R: RawCommandBuffer<B>, 
[src]

impl<B, C, S, L> IntoRawCommandBuffer<B, C> for CommandBuffer<B, C, S, L, <B as Backend>::CommandBuffer> where
    B: Backend
[src]

Auto Trait Implementations

impl<B, C, S, L, R> Unpin for CommandBuffer<B, C, S, L, R> where
    B: Unpin,
    C: Unpin,
    L: Unpin,
    R: Unpin,
    S: Unpin

impl<B, C, S, L, R> Sync for CommandBuffer<B, C, S, L, R> where
    C: Sync,
    L: Sync,
    R: Sync,
    S: Sync

impl<B, C, S, L, R> Send for CommandBuffer<B, C, S, L, R> where
    C: Send,
    L: Send,
    R: Send,
    S: Send

impl<B, C, S, L, R> UnwindSafe for CommandBuffer<B, C, S, L, R> where
    B: UnwindSafe,
    C: UnwindSafe,
    L: UnwindSafe,
    R: UnwindSafe,
    S: UnwindSafe

impl<B, C, S, L, R> RefUnwindSafe for CommandBuffer<B, C, S, L, R> where
    B: RefUnwindSafe,
    C: RefUnwindSafe,
    L: RefUnwindSafe,
    R: RefUnwindSafe,
    S: RefUnwindSafe

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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]

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]

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]

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

impl<T> Any for T where
    T: Any
[src]

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