#[repr(C)]pub struct Material {
pub shader: Shader,
pub maps: *mut MaterialMap,
pub params: [c_float; 4],
}
Expand description
Material, includes shader and maps
Fields§
§shader: Shader
Material shader
maps: *mut MaterialMap
Material maps array (MAX_MATERIAL_MAPS)
params: [c_float; 4]
Material generic parameters (if required)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Material
impl RefUnwindSafe for Material
impl !Send for Material
impl !Sync for Material
impl Unpin for Material
impl UnwindSafe for Material
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