pub struct FrameSnapshot { /* private fields */ }Expand description
An owned frame that can be queued or moved to another thread.
Implementations§
Source§impl FrameSnapshot
impl FrameSnapshot
Sourcepub fn gpu(&self) -> GpuFrameView<'_>
pub fn gpu(&self) -> GpuFrameView<'_>
Returns GPU-oriented draw data borrowed from this snapshot.
Sourcepub fn bake_cpu(&self) -> Vec<CpuMesh>
pub fn bake_cpu(&self) -> Vec<CpuMesh>
Applies morphing and skinning on the CPU for every primitive.
Sourcepub fn bake_cpu_for(&self, camera: CameraMode) -> Vec<CpuMesh>
pub fn bake_cpu_for(&self, camera: CameraMode) -> Vec<CpuMesh>
Bakes CPU meshes with VRM first-person visibility already applied.
Sourcepub fn world_matrices(&self) -> &[Mat4]
pub fn world_matrices(&self) -> &[Mat4]
Returns current world matrices in avatar node order.
Sourcepub fn skinning_palettes(&self) -> &[SkinningPalette]
pub fn skinning_palettes(&self) -> &[SkinningPalette]
Returns current joint-matrix palettes in skin order.
Sourcepub fn morph_updates(&self) -> &[MorphTargetUpdate]
pub fn morph_updates(&self) -> &[MorphTargetUpdate]
Returns expression-produced morph target updates.
Sourcepub fn material_color_updates(&self) -> &[MaterialColorUpdate]
pub fn material_color_updates(&self) -> &[MaterialColorUpdate]
Returns expression-produced material color updates.
Sourcepub fn texture_transform_updates(&self) -> &[TextureTransformUpdate]
pub fn texture_transform_updates(&self) -> &[TextureTransformUpdate]
Returns expression-produced texture transform updates.
Sourcepub fn evaluated_materials(&self) -> &[EvaluatedMaterial]
pub fn evaluated_materials(&self) -> &[EvaluatedMaterial]
Returns renderer-ready dynamic values for every material in the asset.
Sourcepub fn evaluated_material(&self, id: MaterialId) -> Option<&EvaluatedMaterial>
pub fn evaluated_material(&self, id: MaterialId) -> Option<&EvaluatedMaterial>
Resolves one renderer-ready material value by its stable identifier.
Sourcepub fn bone_updates(&self) -> &[BoneUpdate]
pub fn bone_updates(&self) -> &[BoneUpdate]
Returns local humanoid bone updates applied to this frame.
Trait Implementations§
Source§impl Clone for FrameSnapshot
impl Clone for FrameSnapshot
Auto Trait Implementations§
impl Freeze for FrameSnapshot
impl RefUnwindSafe for FrameSnapshot
impl Send for FrameSnapshot
impl Sync for FrameSnapshot
impl Unpin for FrameSnapshot
impl UnsafeUnpin for FrameSnapshot
impl UnwindSafe for FrameSnapshot
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