[][src]Struct amethyst_rendy::submodules::DynamicVertexData

pub struct DynamicVertexData<B: Backend, V: VertexDataBufferType, T: 'static> { /* fields omitted */ }

This structure wraps [PerImageDynamicVertexData], managing multiple instances and providing an easy-to-use interface for having per-image buffers. This is needed because multiple images (frames) can be in flight at any given time, so multiple buffers are needed for the same data.

Methods

impl<B: Backend, V: VertexDataBufferType, T: 'static> DynamicVertexData<B, V, T>[src]

pub fn new() -> Self[src]

Creates a new DynamicVertexData

pub fn write<I>(
    &mut self,
    factory: &Factory<B>,
    index: usize,
    max_num_items: u64,
    iter: I
) -> bool where
    I: IntoIterator,
    I::Item: AsRef<[T]>, 
[src]

Write to the allocated rendy buffer for the specified frame index.

impl<B: Backend, T: 'static> DynamicVertexData<B, VertexData<B, T>, T>[src]

pub fn bind(
    &self,
    index: usize,
    binding_id: u32,
    offset: u64,
    encoder: &mut RenderPassEncoder<B>
) -> bool
[src]

Bind the allocated rendy buffer for this frame index.

impl<B: Backend> DynamicVertexData<B, IndexData<B, u16>, u16>[src]

pub fn bind(
    &self,
    index: usize,
    offset: u64,
    encoder: &mut RenderPassEncoder<B>
) -> bool
[src]

Bind the allocated rendy buffer for this frame index.

impl<B: Backend> DynamicVertexData<B, IndexData<B, u32>, u32>[src]

pub fn bind(
    &self,
    index: usize,
    offset: u64,
    encoder: &mut RenderPassEncoder<B>
) -> bool
[src]

Bind the allocated rendy buffer for this frame index.

Trait Implementations

impl<B: Default + Backend, V: Default + VertexDataBufferType, T: Default + 'static> Default for DynamicVertexData<B, V, T>[src]

impl<B: Debug + Backend, V: Debug + VertexDataBufferType, T: Debug + 'static> Debug for DynamicVertexData<B, V, T>[src]

Auto Trait Implementations

impl<B, V, T> Unpin for DynamicVertexData<B, V, T> where
    T: Unpin,
    V: Unpin,
    <B as Backend>::Buffer: Unpin,
    <B as Backend>::Memory: Unpin

impl<B, V, T> Sync for DynamicVertexData<B, V, T> where
    T: Sync,
    V: Sync,
    <B as Backend>::Buffer: Send + Sync

impl<B, V, T> Send for DynamicVertexData<B, V, T> where
    T: Send,
    V: Send,
    <B as Backend>::Buffer: Send

impl<B, V, T> UnwindSafe for DynamicVertexData<B, V, T> where
    T: UnwindSafe,
    V: UnwindSafe,
    <B as Backend>::Buffer: UnwindSafe,
    <B as Backend>::Memory: RefUnwindSafe + UnwindSafe

impl<B, V, T> RefUnwindSafe for DynamicVertexData<B, V, T> where
    T: RefUnwindSafe,
    V: RefUnwindSafe,
    <B as Backend>::Buffer: RefUnwindSafe,
    <B as Backend>::Memory: 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> TryDefault for T where
    T: Default
[src]

fn unwrap_default() -> Self[src]

Calls try_default and panics on an error case.

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