Skip to content

Commit

Permalink
Merge pull request #83 from SlimeYummy/feat/docs
Browse files Browse the repository at this point in the history
Add more docs
  • Loading branch information
SlimeYummy authored Jun 19, 2024
2 parents 86c2515 + 53de57b commit a6d7cb1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/animation.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//!
//!
//! Animation data structure definition.
//!
use glam::{Quat, Vec3, Vec4};
Expand All @@ -12,6 +12,7 @@ use crate::archive::{Archive, ArchiveRead};
use crate::base::OzzError;
use crate::math::{f16_to_f32, fx4, ix4, simd_f16_to_f32, SoaQuat, SoaVec3};

/// Float3 key for `Animation` track.
#[repr(C)]
#[derive(Debug, Clone, Copy, PartialEq)]
#[cfg_attr(feature = "rkyv", derive(rkyv::Archive, rkyv::Serialize, rkyv::Deserialize))]
Expand Down Expand Up @@ -51,6 +52,7 @@ impl ArchiveRead<Float3Key> for Float3Key {
}
}

/// Quaternion key for `Animation` track.
#[repr(C)]
#[derive(Debug, Clone, Copy, PartialEq)]
#[cfg_attr(feature = "rkyv", derive(rkyv::Archive, rkyv::Serialize, rkyv::Deserialize))]
Expand Down
1 change: 1 addition & 0 deletions src/blending_job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ impl<I: OzzBuf<SoaTransform>> BlendingLayer<I> {
}
}

/// Blending context for storing intermediate blending data in `BlendingJob`.
#[derive(Debug, Clone)]
pub struct BlendingContext {
num_passes: u32,
Expand Down
5 changes: 5 additions & 0 deletions src/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const SIGN_W: i32x4 = i32x4::from_array([0, 0, 0, core::i32::MIN]);
// SoaVec3
//

/// Structure of Arrays (SoA) for Vec3.
#[repr(C)]
#[derive(Debug, Default, Clone, Copy, PartialEq)]
pub struct SoaVec3 {
Expand Down Expand Up @@ -236,6 +237,7 @@ const _: () = {
// SoaQuat
//

/// Structure of Arrays (SoA) for Quaternions.
#[repr(C)]
#[derive(Debug, Default, Clone, Copy, PartialEq)]
pub struct SoaQuat {
Expand Down Expand Up @@ -469,6 +471,7 @@ const _: () = {
// SoaTransform
//

/// Structure of Arrays (SoA) for Transformations.
#[repr(C)]
#[derive(Debug, Default, Clone, Copy, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
Expand Down Expand Up @@ -758,6 +761,8 @@ impl AosMat4 {
//
// SoaMat4
//

/// Structure of Arrays (SoA) for 4x4 Matrices.
#[repr(C)]
#[derive(Debug, Default, Clone, Copy, PartialEq)]
pub struct SoaMat4 {
Expand Down
1 change: 1 addition & 0 deletions src/track_triggering_job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ where
}
}

/// Iterator of `Edge` that represents the detected edges.
#[derive(Debug)]
pub struct TrackTriggeringIter<'t, T>
where
Expand Down

0 comments on commit a6d7cb1

Please sign in to comment.