pub struct InstancedGeometry { /* private fields */ }
Expand description
Geometry data that has been loaded to the GPU.
Mesh
objects instantiated with this data will share GPU resources, allowing for more
efficient instanced rendering. Use Factory::upload_geometry
to upload Geometry
to the GPU and get an InstancedGeometry
. You can use an InstancedGeometry
to create
a MeshTemplate
for use in a Template
, or you can use Factory::create_instanced_mesh
to create a Mesh
directly.
Trait Implementations§
Source§impl Clone for InstancedGeometry
impl Clone for InstancedGeometry
Source§fn clone(&self) -> InstancedGeometry
fn clone(&self) -> InstancedGeometry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for InstancedGeometry
impl !RefUnwindSafe for InstancedGeometry
impl Send for InstancedGeometry
impl Sync for InstancedGeometry
impl Unpin for InstancedGeometry
impl !UnwindSafe for InstancedGeometry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more