pub struct RenderDataContainer {
pub environment_map_specular_convolution: Option<EnvironmentMapSpecularConvolution>,
pub environment_map_irradiance_convolution: EnvironmentMapIrradianceConvolution,
pub need_recalculate_convolution: bool,
pub ssao_renderer: ScreenSpaceAmbientOcclusionRenderer,
pub gbuffer: GBuffer,
pub hdr_scene_framebuffer: GpuFrameBuffer,
pub ldr_scene_framebuffer: GpuFrameBuffer,
pub ldr_temp_framebuffer: [GpuFrameBuffer; 2],
pub hdr_renderer: HighDynamicRangeRenderer,
pub statistics: SceneStatistics,
}Expand description
A set of frame buffers and renderers that can be used to render to.
Fields§
§environment_map_specular_convolution: Option<EnvironmentMapSpecularConvolution>Prefiltered environment map that contains a specular component of the environment map with roughness encoded in mip levels.
environment_map_irradiance_convolution: EnvironmentMapIrradianceConvolutionIrradiance cube map. Contains computed the irradiance computed from the environment map.
need_recalculate_convolution: boolA flag that defines whether the renderer must recalculate specular/irradiance convolution for environment maps.
ssao_renderer: ScreenSpaceAmbientOcclusionRendererScreen space ambient occlusion renderer.
gbuffer: GBufferG-Buffer of the container.
hdr_scene_framebuffer: GpuFrameBufferIntermediate high dynamic range frame buffer.
ldr_scene_framebuffer: GpuFrameBufferFinal frame of the container. Tone mapped + gamma corrected.
ldr_temp_framebuffer: [GpuFrameBuffer; 2]Additional frame buffer for post-processing.
hdr_renderer: HighDynamicRangeRendererHDR renderer has to be created per container, because it contains scene luminance.
statistics: SceneStatisticsRendering statistics for a container.
Implementations§
Source§impl RenderDataContainer
impl RenderDataContainer
Sourcepub fn new(
server: &dyn GraphicsServer,
frame_size: Vector2<f32>,
final_frame_texture: FrameTextureKind,
) -> Result<Self, FrameworkError>
pub fn new( server: &dyn GraphicsServer, frame_size: Vector2<f32>, final_frame_texture: FrameTextureKind, ) -> Result<Self, FrameworkError>
Creates a new container.
Sourcepub fn hdr_scene_frame_texture(&self) -> &GpuTexture
pub fn hdr_scene_frame_texture(&self) -> &GpuTexture
Returns high-dynamic range frame buffer texture.
Sourcepub fn ldr_scene_frame_texture(&self) -> &GpuTexture
pub fn ldr_scene_frame_texture(&self) -> &GpuTexture
Returns low-dynamic range frame buffer texture (final frame).
Sourcepub fn ldr_temp_frame_texture(&self, i: usize) -> &GpuTexture
pub fn ldr_temp_frame_texture(&self, i: usize) -> &GpuTexture
Returns low-dynamic range frame buffer texture (accumulation frame).
Sourcepub fn set_quality_settings(&mut self, settings: &QualitySettings)
pub fn set_quality_settings(&mut self, settings: &QualitySettings)
Sets the new quality settings.
Auto Trait Implementations§
impl !Freeze for RenderDataContainer
impl !RefUnwindSafe for RenderDataContainer
impl !Send for RenderDataContainer
impl !Sync for RenderDataContainer
impl Unpin for RenderDataContainer
impl !UnwindSafe for RenderDataContainer
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
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> 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>, which can then be
downcast into Box<dyn 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>, which 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> 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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T, U> ObjectOrVariant<T> for Uwhere
PhantomData<U>: ObjectOrVariantHelper<T, U>,
impl<T, U> ObjectOrVariant<T> for Uwhere
PhantomData<U>: ObjectOrVariantHelper<T, U>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.