Trait pasture_core::containers::MakeBufferFromLayout
source · pub trait MakeBufferFromLayout<'a>: BorrowedBuffer<'a> + Sized {
// Required method
fn new_from_layout(point_layout: PointLayout) -> Self;
}
Expand description
Trait for all buffers that can be default-constructed from a given PointLayout
. This trait is helpful for generic
code that needs to construct an generic buffer type
Required Methods§
sourcefn new_from_layout(point_layout: PointLayout) -> Self
fn new_from_layout(point_layout: PointLayout) -> Self
Creates a new empty buffer from the given PointLayout
Object Safety§
This trait is not object safe.