sgl_post_fx/lib.rs
1//! SGL's wgpu post-processing effects: screen-space reflections, temporal
2//! anti-aliasing and their shared context. Derived from DiligentFX revision
3//! f26cfe5b901bf180c4a3c9bbd4d5df0b96536d4b, with fixes and enhancements for
4//! SGL3D. See README.md and PROVENANCE.md for origins and implementation notes.
5//! This library evolves independently of upstream; scene and frame integration
6//! belong to its caller.
7//!
8//! | Upstream | Here |
9//! | --- | --- |
10//! | `PostProcess/ScreenSpaceReflection/{interface,src}/ScreenSpaceReflection.*` | [`screen_space_reflection`] |
11//! | `PostProcess/TemporalAntiAliasing/{interface,src}/TemporalAntiAliasing.*` | [`temporal_anti_aliasing`] |
12//! | `PostProcess/Common/{interface,src}/PostFXContext.*` | [`post_fx_context`] |
13//! | `PostProcess/Common/{interface,src}/PostFXRenderTechnique.*` | [`render_technique`] |
14//! | `Shaders/Common/public/BasicStructures.fxh`, `ScreenSpaceReflectionStructures.fxh`, `TemporalAntiAliasingStructures.fxh` | [`structures`] |
15//! | `Shaders/**`, DiligentCore `HLSLDefinitions.fxh` | `shaders/wgsl/**`, assembled by [`shaders`] |
16pub mod post_fx_context;
17pub mod render_technique;
18pub mod screen_space_reflection;
19pub mod shaders;
20pub mod structures;
21pub mod temporal_anti_aliasing;
22
23pub use post_fx_context::PostFXContext;
24pub use screen_space_reflection::ScreenSpaceReflection;
25pub use structures::{CameraAttribs, ScreenSpaceReflectionAttribs, TemporalAntiAliasingAttribs};
26pub use temporal_anti_aliasing::TemporalAntiAliasing;