#[repr(C)]pub struct MaterialData {
pub albedo_id: u32,
pub normal_id: u32,
pub roughness_id: u32,
pub padding: u32,
}Expand description
GPU friendly structure containing lookup id’s for bindless materials
Fields§
§albedo_id: u32§normal_id: u32§roughness_id: u32§padding: u32Trait Implementations§
Source§impl Clone for MaterialData
impl Clone for MaterialData
Source§fn clone(&self) -> MaterialData
fn clone(&self) -> MaterialData
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 moreAuto Trait Implementations§
impl Freeze for MaterialData
impl RefUnwindSafe for MaterialData
impl Send for MaterialData
impl Sync for MaterialData
impl Unpin for MaterialData
impl UnsafeUnpin for MaterialData
impl UnwindSafe for MaterialData
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