[][src]Struct gfx_hal::command::RenderPassInlineEncoder

pub struct RenderPassInlineEncoder<'a, B: Backend>(_)
where
    B::CommandBuffer: 'a
;

An object that records commands into a command buffer inline, that is, without secondary command buffers.

Methods

impl<'a, B: Backend> RenderPassInlineEncoder<'a, B>[src]

pub unsafe fn new<C, T, S: Shot>(
    cmd_buffer: &'a mut CommandBuffer<B, C, S, Primary>,
    render_pass: &B::RenderPass,
    frame_buffer: &B::Framebuffer,
    render_area: Rect,
    clear_values: T
) -> Self where
    C: Supports<Graphics>,
    T: IntoIterator,
    T::Item: Borrow<ClearValue>, 
[src]

Creates a new RenderPassInlineEncoder, starting a new render pass in the given CommandBuffer.

pub fn next_subpass_inline(self) -> Self[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::CommandBuffer>>

pub unsafe fn clear_attachments<T, U>(&mut self, clears: T, rects: U) where
    T: IntoIterator,
    T::Item: Borrow<AttachmentClear>,
    U: IntoIterator,
    U::Item: Borrow<ClearRect>, 
[src]

pub unsafe fn draw(
    &mut self,
    vertices: Range<VertexCount>,
    instances: Range<InstanceCount>
)
[src]

pub unsafe fn draw_indexed(
    &mut self,
    indices: Range<IndexCount>,
    base_vertex: VertexOffset,
    instances: Range<InstanceCount>
)
[src]

pub unsafe fn draw_indirect(
    &mut self,
    buffer: &B::Buffer,
    offset: Offset,
    draw_count: DrawCount,
    stride: u32
)
[src]

pub unsafe fn draw_indexed_indirect(
    &mut self,
    buffer: &B::Buffer,
    offset: Offset,
    draw_count: DrawCount,
    stride: u32
)
[src]

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

pub unsafe fn bind_vertex_buffers<I, T>(
    &mut self,
    first_binding: BufferIndex,
    buffers: I
) where
    I: IntoIterator<Item = (T, Offset)>,
    T: Borrow<B::Buffer>, 
[src]

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

pub unsafe fn bind_graphics_descriptor_sets<I, J>(
    &mut self,
    layout: &B::PipelineLayout,
    first_set: usize,
    sets: I,
    offsets: J
) where
    I: IntoIterator,
    I::Item: Borrow<B::DescriptorSet>,
    J: IntoIterator,
    J::Item: Borrow<DescriptorSetOffset>, 
[src]

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

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

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

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

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

pub unsafe fn set_blend_constants(&mut self, cv: ColorValue)[src]

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

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

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: Backend> Drop for RenderPassInlineEncoder<'a, B>[src]

impl<'a, B: Backend> Deref for RenderPassInlineEncoder<'a, B>[src]

type Target = RenderSubpassCommon<B, &'a mut B::CommandBuffer>

The resulting type after dereferencing.

impl<'a, B: Backend> DerefMut for RenderPassInlineEncoder<'a, B>[src]

impl<'a, B: Debug + Backend> Debug for RenderPassInlineEncoder<'a, B> where
    B::CommandBuffer: 'a,
    B::CommandBuffer: Debug
[src]

Auto Trait Implementations

impl<'a, B> Unpin for RenderPassInlineEncoder<'a, B> where
    B: Unpin

impl<'a, B> Sync for RenderPassInlineEncoder<'a, B> where
    <B as Backend>::CommandBuffer: Sync

impl<'a, B> Send for RenderPassInlineEncoder<'a, B> where
    <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

Blanket Implementations

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

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]