[−][src]Struct amethyst_rendy::submodules::DynamicVertexData
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]
&mut self,
factory: &Factory<B>,
index: usize,
max_num_items: u64,
iter: I
) -> bool where
I: IntoIterator,
I::Item: AsRef<[T]>,
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]
&self,
index: usize,
binding_id: u32,
offset: u64,
encoder: &mut RenderPassEncoder<B>
) -> bool
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]
&self,
index: usize,
offset: u64,
encoder: &mut RenderPassEncoder<B>
) -> bool
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]
&self,
index: usize,
offset: u64,
encoder: &mut RenderPassEncoder<B>
) -> bool
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]
fn default() -> 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,
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,
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,
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,
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,
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
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]
T: Parameter<Self>,
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]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> Any for T where
T: Any,
[src]
T: Any,
fn get_type_id(&self) -> TypeId
[src]
impl<T> TryDefault for T where
T: Default,
[src]
T: Default,
fn try_default() -> Result<T, String>
[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]
T: Send + Sync + 'static,