pub struct RenderBinding {
pub mesh: ResourceId,
pub material: ResourceId,
pub tint: [f32; 4],
pub animation: u32,
pub morph: u32,
}Expand description
Application-selected generic asset identities and small instance appearance data. Asset lifetime/type validation belongs to the renderer’s asset registry before upload.
Fields§
§mesh: ResourceIdMesh identity; never a pointer into a mutable resource arena.
material: ResourceIdMaterial identity, resolved separately from mesh identity.
tint: [f32; 4]Finite linear RGBA multipliers in 0..1.
animation: u32Animation selection; the asset owner validates supported clips.
morph: u32Morph selection; the asset owner validates supported targets.
Implementations§
Source§impl RenderBinding
impl RenderBinding
Sourcepub fn validate(self) -> Result<Self, RenderError>
pub fn validate(self) -> Result<Self, RenderError>
Validate numeric instance data without resolving or assuming asset availability.
Trait Implementations§
Source§impl Clone for RenderBinding
impl Clone for RenderBinding
impl Copy for RenderBinding
Source§impl Debug for RenderBinding
impl Debug for RenderBinding
Source§impl PartialEq for RenderBinding
impl PartialEq for RenderBinding
impl StructuralPartialEq for RenderBinding
Auto Trait Implementations§
impl Freeze for RenderBinding
impl RefUnwindSafe for RenderBinding
impl Send for RenderBinding
impl Sync for RenderBinding
impl Unpin for RenderBinding
impl UnsafeUnpin for RenderBinding
impl UnwindSafe for RenderBinding
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