Struct LayerDefinition
#[non_exhaustive]pub struct LayerDefinition {
pub mesh: MeshDefinition,
pub texture_width: u32,
pub texture_height: u32,
}Expand description
LayerDefinition: a mesh and the size of the texture its boxes are on.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mesh: MeshDefinitionThe model mesh to bake.
texture_width: u32Texture width in texels.
texture_height: u32Texture height in texels.
Implementations§
§impl LayerDefinition
impl LayerDefinition
pub fn create(
mesh: MeshDefinition,
texture_width: u32,
texture_height: u32,
) -> LayerDefinition
pub fn create( mesh: MeshDefinition, texture_width: u32, texture_height: u32, ) -> LayerDefinition
LayerDefinition.create(mesh, 64, 64).
Trait Implementations§
§impl Clone for LayerDefinition
impl Clone for LayerDefinition
§fn clone(&self) -> LayerDefinition
fn clone(&self) -> LayerDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for LayerDefinition
impl Debug for LayerDefinition
§impl<'de> Deserialize<'de> for LayerDefinition
impl<'de> Deserialize<'de> for LayerDefinition
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LayerDefinition, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LayerDefinition, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for LayerDefinition
impl PartialEq for LayerDefinition
§impl Serialize for LayerDefinition
impl Serialize for LayerDefinition
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LayerDefinition
Auto Trait Implementations§
impl Freeze for LayerDefinition
impl RefUnwindSafe for LayerDefinition
impl Send for LayerDefinition
impl Sync for LayerDefinition
impl Unpin for LayerDefinition
impl UnsafeUnpin for LayerDefinition
impl UnwindSafe for LayerDefinition
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