Struct oxygengine_ha_renderer::material::Material
source · pub struct Material {
pub default_values: HashMap<String, MaterialValue>,
pub draw_options: MaterialDrawOptions,
/* private fields */
}Fields§
§default_values: HashMap<String, MaterialValue>§draw_options: MaterialDrawOptionsImplementations§
source§impl Material
impl Material
pub fn new_graph(graph: MaterialGraph) -> Self
pub fn new_baked( versions: HashMap<MaterialSignature, BakedMaterialShaders> ) -> Self
pub fn detailed_info(&self) -> MaterialDetailedInfo
pub fn graph(&self) -> Option<&MaterialGraph>
pub fn versions(&self) -> impl Iterator<Item = &MaterialSignature>
pub fn resources( &self, signature: &MaterialSignature, _: &RenderStageResources<'_> ) -> Option<&MaterialResourceHandles>
pub fn has_uniform( &self, signature: &MaterialSignature, name: &str, value_type: Option<&MaterialValueType> ) -> Result<bool, MaterialError>
Trait Implementations§
Auto Trait Implementations§
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