pub struct PbrStrategy { /* private fields */ }Trait Implementations§
Source§impl Default for PbrStrategy
impl Default for PbrStrategy
Source§impl ShadingStrategy for PbrStrategy
impl ShadingStrategy for PbrStrategy
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Stable name used for lookup in
StrategyRegistry and stored on
Material::strategy.Source§fn requirements(&self) -> &Requirements
fn requirements(&self) -> &Requirements
What this strategy needs from a material to be able to resolve it.
Source§fn fields(&self) -> &[FieldDesc]
fn fields(&self) -> &[FieldDesc]
The fields this strategy produces, in a fixed order.
resolve()
returns one value per field, in this same order.Source§fn resolve(
&self,
material: &Material,
) -> Result<Vec<MaterialValue>, MaterialError>
fn resolve( &self, material: &Material, ) -> Result<Vec<MaterialValue>, MaterialError>
Resolves this material’s value for every field in
fields(),
applying this strategy’s own fallbacks for missing properties.Auto Trait Implementations§
impl Freeze for PbrStrategy
impl RefUnwindSafe for PbrStrategy
impl Send for PbrStrategy
impl Sync for PbrStrategy
impl Unpin for PbrStrategy
impl UnsafeUnpin for PbrStrategy
impl UnwindSafe for PbrStrategy
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