pub struct PostProcessingConfig {
pub enabled: bool,
pub emissive_pass: Option<EmissivePassConfig>,
pub blur_pass: Option<BlurPassConfig>,
pub bloom: Option<BloomConfig>,
pub bokeh: Option<BokehConfig>,
}Fields§
§enabled: bool§emissive_pass: Option<EmissivePassConfig>§blur_pass: Option<BlurPassConfig>§bloom: Option<BloomConfig>§bokeh: Option<BokehConfig>Implementations§
Source§impl PostProcessingConfig
impl PostProcessingConfig
pub fn is_active(&self) -> bool
pub fn needs_depth(&self) -> bool
pub fn bloom_radius_pixels(&self, viewport_width: u32) -> Option<u32>
Sourcepub fn effective_blur_radius_pixels(&self, viewport_width: u32) -> Option<u32>
pub fn effective_blur_radius_pixels(&self, viewport_width: u32) -> Option<u32>
Effective blur radius: uses BlurPassConfig when present, falls back to bloom.
Sourcepub fn effective_blur_half_res(&self) -> bool
pub fn effective_blur_half_res(&self) -> bool
Effective half-res flag: uses BlurPassConfig when present, falls back to bloom.
pub fn ndc_radius_to_pixels(radius_ndc: f32, viewport_width: u32) -> u32
Trait Implementations§
Source§impl Clone for PostProcessingConfig
impl Clone for PostProcessingConfig
Source§fn clone(&self) -> PostProcessingConfig
fn clone(&self) -> PostProcessingConfig
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 moreSource§impl Debug for PostProcessingConfig
impl Debug for PostProcessingConfig
Source§impl Default for PostProcessingConfig
impl Default for PostProcessingConfig
Source§fn default() -> PostProcessingConfig
fn default() -> PostProcessingConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PostProcessingConfig
impl RefUnwindSafe for PostProcessingConfig
impl Send for PostProcessingConfig
impl Sync for PostProcessingConfig
impl Unpin for PostProcessingConfig
impl UnsafeUnpin for PostProcessingConfig
impl UnwindSafe for PostProcessingConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.