pub struct HikariSettings {Show 15 fields
pub direct_validate_interval: usize,
pub emissive_validate_interval: usize,
pub max_temporal_reuse_count: usize,
pub max_spatial_reuse_count: usize,
pub max_reservoir_lifetime: f32,
pub solar_angle: f32,
pub indirect_bounces: usize,
pub max_indirect_luminance: f32,
pub clear_color: Color,
pub temporal_reuse: bool,
pub emissive_spatial_reuse: bool,
pub indirect_spatial_reuse: bool,
pub denoise: bool,
pub taa: Taa,
pub upscale: Upscale,
}
Expand description
Settings that must be attached on cameras with bevy_hikari
render graph.
Fields§
§direct_validate_interval: usize
The interval of frames between sample validation passes.
emissive_validate_interval: usize
The interval of frames between sample validation passes.
max_temporal_reuse_count: usize
Temporal reservoir sample count is capped by this value.
max_spatial_reuse_count: usize
Spatial reservoir sample count is capped by this value.
max_reservoir_lifetime: f32
Max lifetime of a reservoir sample before being replaced with new one.
solar_angle: f32
Half angle of the solar cone apex in radians.
indirect_bounces: usize
Count of indirect bounces.
max_indirect_luminance: f32
Threshold for the indirect luminance to reduce fireflies.
clear_color: Color
Clear color override.
temporal_reuse: bool
Whether to do temporal sample reuse in ReSTIR.
emissive_spatial_reuse: bool
Whether to do spatial sample reuse for emissive lighting in ReSTIR.
indirect_spatial_reuse: bool
Whether to do spatial sample reuse for indirect lighting in ReSTIR.
denoise: bool
Whether to do noise filtering.
taa: Taa
Which temporal filtering implementation to use.
upscale: Upscale
Which upscaling implementation to use.
Trait Implementations§
Source§impl Clone for HikariSettings
impl Clone for HikariSettings
Source§fn clone(&self) -> HikariSettings
fn clone(&self) -> HikariSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Component for HikariSettings
impl Component for HikariSettings
type Storage = TableStorage
Source§impl Debug for HikariSettings
impl Debug for HikariSettings
Source§impl Default for HikariSettings
impl Default for HikariSettings
Source§impl ExtractComponent for HikariSettings
impl ExtractComponent for HikariSettings
Source§type Query = &'static HikariSettings
type Query = &'static HikariSettings
WorldQuery
to fetch the components to extract.Source§fn extract_component(item: QueryItem<'_, Self::Query>) -> Self
fn extract_component(item: QueryItem<'_, Self::Query>) -> Self
Source§impl GetTypeRegistration for HikariSettings
impl GetTypeRegistration for HikariSettings
Source§impl Reflect for HikariSettings
impl Reflect for HikariSettings
Source§fn get_type_info(&self) -> &'static TypeInfo
fn get_type_info(&self) -> &'static TypeInfo
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
&mut dyn Any
.Source§fn into_reflect(self: Box<Self>) -> Box<dyn Reflect>
fn into_reflect(self: Box<Self>) -> Box<dyn Reflect>
Source§fn as_reflect(&self) -> &dyn Reflect
fn as_reflect(&self) -> &dyn Reflect
Source§fn as_reflect_mut(&mut self) -> &mut dyn Reflect
fn as_reflect_mut(&mut self) -> &mut dyn Reflect
Source§fn clone_value(&self) -> Box<dyn Reflect>
fn clone_value(&self) -> Box<dyn Reflect>
Reflect
trait object. Read moreSource§fn set(&mut self, value: Box<dyn Reflect>) -> Result<(), Box<dyn Reflect>>
fn set(&mut self, value: Box<dyn Reflect>) -> Result<(), Box<dyn Reflect>>
Source§fn reflect_ref(&self) -> ReflectRef<'_>
fn reflect_ref(&self) -> ReflectRef<'_>
Source§fn reflect_mut(&mut self) -> ReflectMut<'_>
fn reflect_mut(&mut self) -> ReflectMut<'_>
Source§fn reflect_owned(self: Box<Self>) -> ReflectOwned
fn reflect_owned(self: Box<Self>) -> ReflectOwned
Source§fn reflect_partial_eq(&self, value: &dyn Reflect) -> Option<bool>
fn reflect_partial_eq(&self, value: &dyn Reflect) -> Option<bool>
Source§fn reflect_hash(&self) -> Option<u64>
fn reflect_hash(&self) -> Option<u64>
Source§fn debug(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn debug(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Source§fn serializable(&self) -> Option<Serializable<'_>>
fn serializable(&self) -> Option<Serializable<'_>>
Source§impl Struct for HikariSettings
impl Struct for HikariSettings
Source§fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field(&self, name: &str) -> Option<&dyn Reflect>
name
as a &dyn Reflect
.Source§fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
name
as a
&mut dyn Reflect
.Source§fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
index
as a
&dyn Reflect
.Source§fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
index
as a &mut dyn Reflect
.Source§fn name_at(&self, index: usize) -> Option<&str>
fn name_at(&self, index: usize) -> Option<&str>
index
.Source§fn iter_fields(&self) -> FieldIter<'_>
fn iter_fields(&self) -> FieldIter<'_>
Source§fn clone_dynamic(&self) -> DynamicStruct
fn clone_dynamic(&self) -> DynamicStruct
DynamicStruct
.Auto Trait Implementations§
impl Freeze for HikariSettings
impl RefUnwindSafe for HikariSettings
impl Send for HikariSettings
impl Sync for HikariSettings
impl Unpin for HikariSettings
impl UnwindSafe for HikariSettings
Blanket Implementations§
Source§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
Source§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
T
ShaderType
for self
. When used in AsBindGroup
derives, it is safe to assume that all images in self
exist.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
Source§impl<C> Bundle for Cwhere
C: Component,
impl<C> Bundle for Cwhere
C: Component,
fn component_ids( components: &mut Components, storages: &mut Storages, ids: &mut impl FnMut(ComponentId), )
unsafe fn from_components<T, F>(ctx: &mut T, func: &mut F) -> C
fn get_components(self, func: &mut impl FnMut(OwningPtr<'_>))
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>
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>
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)
&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)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
Source§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Self
using data from the given WorldSource§impl<S> GetField for Swhere
S: Struct,
impl<S> GetField for Swhere
S: Struct,
Source§impl<T> GetPath for Twhere
T: Reflect,
impl<T> GetPath for Twhere
T: Reflect,
Source§fn path<'r, 'p>(
&'r self,
path: &'p str,
) -> Result<&'r (dyn Reflect + 'static), ReflectPathError<'p>>
fn path<'r, 'p>( &'r self, path: &'p str, ) -> Result<&'r (dyn Reflect + 'static), ReflectPathError<'p>>
path
. Read moreSource§fn path_mut<'r, 'p>(
&'r mut self,
path: &'p str,
) -> Result<&'r mut (dyn Reflect + 'static), ReflectPathError<'p>>
fn path_mut<'r, 'p>( &'r mut self, path: &'p str, ) -> Result<&'r mut (dyn Reflect + 'static), ReflectPathError<'p>>
path
. Read moreSource§fn get_path<'r, 'p, T>(
&'r self,
path: &'p str,
) -> Result<&'r T, ReflectPathError<'p>>where
T: Reflect,
fn get_path<'r, 'p, T>(
&'r self,
path: &'p str,
) -> Result<&'r T, ReflectPathError<'p>>where
T: Reflect,
path
.Source§fn get_path_mut<'r, 'p, T>(
&'r mut self,
path: &'p str,
) -> Result<&'r mut T, ReflectPathError<'p>>where
T: Reflect,
fn get_path_mut<'r, 'p, T>(
&'r mut self,
path: &'p str,
) -> Result<&'r mut T, ReflectPathError<'p>>where
T: Reflect,
path
.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more