shine_gltf/extensions/
accessor.rs

1use serde_derive::{Deserialize, Serialize};
2use shine_gltf_macro::Validate;
3
4/// Contains data structures for sparse storage.
5pub mod sparse {
6    use super::*;
7
8    /// Indices of those attributes that deviate from their initialization value.
9    #[derive(Clone, Debug, Default, Deserialize, Serialize, Validate)]
10    pub struct Indices {}
11
12    /// Sparse storage of attributes that deviate from their initialization value.
13    #[derive(Clone, Debug, Default, Deserialize, Serialize, Validate)]
14    pub struct Sparse {}
15
16    /// Array of size `count * number_of_components` storing the displaced
17    /// accessor attributes pointed by `accessor::sparse::Indices`.
18    #[derive(Clone, Debug, Default, Deserialize, Serialize, Validate)]
19    pub struct Values {}
20}
21
22/// A typed view into a buffer view.
23#[derive(Clone, Debug, Default, Deserialize, Serialize, Validate)]
24pub struct Accessor {}