pub struct ToneMappingPassDesc {
pub width: u32,
pub height: u32,
pub output_format: TextureFormat,
pub output_sdr: ResourceId,
pub input_hdr: ResourceId,
pub input_bloom: ResourceId,
pub operator: ToneMappingOperator,
pub exposure: f32,
pub gamma: f32,
pub white_point: f32,
pub color_lut_enabled: bool,
pub color_lut_size: u32,
}Fields§
§width: u32§height: u32§output_format: TextureFormat§output_sdr: ResourceId§input_hdr: ResourceId§input_bloom: ResourceId§operator: ToneMappingOperator§exposure: f32§gamma: f32§white_point: f32§color_lut_enabled: bool§color_lut_size: u32Implementations§
Source§impl ToneMappingPassDesc
impl ToneMappingPassDesc
pub fn default(width: u32, height: u32) -> Self
pub fn apply_aces(&self, color: Vec3) -> Vec3
pub fn apply_hable_filmic(&self, color: Vec3) -> Vec3
pub fn apply_reinhard(&self, color: Vec3) -> Vec3
pub fn apply_reinhard_extended(&self, color: Vec3) -> Vec3
pub fn apply_operator(&self, color: Vec3) -> Vec3
pub fn gamma_correct(&self, linear: Vec3) -> Vec3
Trait Implementations§
Source§impl Clone for ToneMappingPassDesc
impl Clone for ToneMappingPassDesc
Auto Trait Implementations§
impl Freeze for ToneMappingPassDesc
impl RefUnwindSafe for ToneMappingPassDesc
impl Send for ToneMappingPassDesc
impl Sync for ToneMappingPassDesc
impl Unpin for ToneMappingPassDesc
impl UnsafeUnpin for ToneMappingPassDesc
impl UnwindSafe for ToneMappingPassDesc
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.