Struct three::template::InstancedGeometry
source · 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
sourceimpl Clone for InstancedGeometry
impl Clone for InstancedGeometry
sourcefn clone(&self) -> InstancedGeometry
fn clone(&self) -> InstancedGeometry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for InstancedGeometry
impl Send for InstancedGeometry
impl Sync for InstancedGeometry
impl Unpin for InstancedGeometry
impl !UnwindSafe for InstancedGeometry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.