pub struct ModelGroup {
pub models: Vec<Models>,
/* private fields */
}Fields§
§models: Vec<Models>Implementations§
Source§impl ModelGroup
impl ModelGroup
Sourcepub fn draw<'a>(
&'a self,
render_pass: &mut RenderPass<'a>,
write_to_all_outputs: bool,
pass_id: MeshRenderPass,
camera: &CameraData,
output5_type: Option<Output5Type>,
models_index: Option<usize>,
model_index: Option<usize>,
)
pub fn draw<'a>( &'a self, render_pass: &mut RenderPass<'a>, write_to_all_outputs: bool, pass_id: MeshRenderPass, camera: &CameraData, output5_type: Option<Output5Type>, models_index: Option<usize>, model_index: Option<usize>, )
Draw each mesh for each model.
Sourcepub fn draw_bounds<'a>(
&'a self,
render_pass: &mut RenderPass<'a>,
bind_group1: &'a BindGroup1,
culled_bind_group1: &'a BindGroup1,
camera: &CameraData,
)
pub fn draw_bounds<'a>( &'a self, render_pass: &mut RenderPass<'a>, bind_group1: &'a BindGroup1, culled_bind_group1: &'a BindGroup1, camera: &CameraData, )
Draw the bounding box for each model and group of models.
pub fn reset_morphs(&self, encoder: &mut CommandEncoder)
pub fn compute_morphs<'a>(&'a self, compute_pass: &mut ComputePass<'a>)
Sourcepub fn update_bone_transforms(
&self,
queue: &Queue,
animation: &Animation,
current_time_seconds: f32,
)
pub fn update_bone_transforms( &self, queue: &Queue, animation: &Animation, current_time_seconds: f32, )
Animate each of the bone transforms in the current skeleton.
Sourcepub fn update_morph_weights(
&self,
queue: &Queue,
animation: &Animation,
current_time_seconds: f32,
)
pub fn update_morph_weights( &self, queue: &Queue, animation: &Animation, current_time_seconds: f32, )
Update morph weights for all vertex buffers.
Auto Trait Implementations§
impl Freeze for ModelGroup
impl !RefUnwindSafe for ModelGroup
impl Send for ModelGroup
impl Sync for ModelGroup
impl Unpin for ModelGroup
impl !UnwindSafe for ModelGroup
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, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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