[][src]Struct rendy_command::RenderPassInlineEncoder

pub struct RenderPassInlineEncoder<'a, B: Backend> { /* fields omitted */ }

Special encoder to record commands inside render pass.

Methods

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

pub fn next_subpass_inline(self) -> RenderPassInlineEncoder<'a, B>[src]

Record next subpass inline.

pub fn next_subpass_secondary(self) -> RenderPassSecondaryEncoder<'a, B>[src]

Record next subpass secondary.

Methods from Deref<Target = RenderPassEncoder<'a, B>>

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

Draw.

Safety

The range of vertices must not exceed the size of the currently bound vertex buffer, and the range of instances must not exceed the size of the currently bound instance buffer.

See: https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/vkCmdDraw.html

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

Draw indexed, with base_vertex specifying an offset that is treated as vertex number 0.

Safety

Same as draw(), plus the value of base_vertex. So, base_vertex + indices.end must not be larger than the currently bound vertex buffer.

See: https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/vkCmdDrawIndexed.html

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

Draw indirect. Similar to draw except takes vertices and instance data from buffer at specified offset. buffer must contain draw_count of DrawCommand starting from offset with stride bytes between each.

Safety

Similar to draw().

See: https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/vkCmdDrawIndirect.html

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

Draw indirect with indices. Similar to [draw_indexed] except takes vertices, indices and instance data from buffer at specified offset. buffer must contain draw_count of DrawIndexedCommand starting from offset with stride bytes between each.

Safety

Similar to draw_indexed()

See: https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/vkCmdDrawIndexedIndirect.html

pub fn reborrow(&mut self) -> RenderPassEncoder<B>[src]

Reborrow encoder.

Trait Implementations

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

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

type Target = RenderPassEncoder<'a, B>

The resulting type after dereferencing.

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

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

Auto Trait Implementations

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

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

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<T> Supports<T> for T[src]

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> Erased for T[src]