Expand description
SGL’s wgpu post-processing effects: screen-space reflections, temporal anti-aliasing and their shared context. Derived from DiligentFX revision f26cfe5b901bf180c4a3c9bbd4d5df0b96536d4b, with fixes and enhancements for SGL3D. See README.md and PROVENANCE.md for origins and implementation notes. This library evolves independently of upstream; scene and frame integration belong to its caller.
| Upstream | Here |
|---|---|
PostProcess/ScreenSpaceReflection/{interface,src}/ScreenSpaceReflection.* | screen_space_reflection |
PostProcess/TemporalAntiAliasing/{interface,src}/TemporalAntiAliasing.* | temporal_anti_aliasing |
PostProcess/Common/{interface,src}/PostFXContext.* | post_fx_context |
PostProcess/Common/{interface,src}/PostFXRenderTechnique.* | render_technique |
Shaders/Common/public/BasicStructures.fxh, ScreenSpaceReflectionStructures.fxh, TemporalAntiAliasingStructures.fxh | structures |
Shaders/**, DiligentCore HLSLDefinitions.fxh | shaders/wgsl/**, assembled by shaders |
Re-exports§
pub use post_fx_context::PostFXContext;pub use screen_space_reflection::ScreenSpaceReflection;pub use structures::CameraAttribs;pub use structures::ScreenSpaceReflectionAttribs;pub use structures::TemporalAntiAliasingAttribs;pub use temporal_anti_aliasing::TemporalAntiAliasing;
Modules§
- post_
fx_ context - Port of DiligentFX
PostProcess/Common/{interface/PostFXContext.hpp, src/PostFXContext.cpp}(revision f26cfe5b901bf180c4a3c9bbd4d5df0b96536d4b). Copyright 2024-2026 Diligent Graphics LLC, licensed under the Apache License, Version 2.0 (vendor/DiligentFX/License.txt). Modified: rewritten in Rust over wgpu; origins and implementation notes are recorded in PROVENANCE.md. - render_
technique - Port of DiligentFX
PostProcess/Common/{interface/PostFXRenderTechnique.hpp, src/PostFXRenderTechnique.cpp}(revision f26cfe5b901bf180c4a3c9bbd4d5df0b96536d4b). Copyright 2024-2026 Diligent Graphics LLC, licensed under the Apache License, Version 2.0 (vendor/DiligentFX/License.txt). Modified: rewritten in Rust over wgpu. - screen_
space_ reflection - Port of DiligentFX
PostProcess/ScreenSpaceReflection/{interface/ScreenSpaceReflection.hpp, src/ScreenSpaceReflection.cpp}(revision f26cfe5b901bf180c4a3c9bbd4d5df0b96536d4b). Copyright 2023-2026 Diligent Graphics LLC, licensed under the Apache License, Version 2.0 (vendor/DiligentFX/License.txt). Modified: rewritten in Rust over wgpu; origins and implementation notes are recorded in PROVENANCE.md. - shaders
- The WGSL port of the DiligentFX shaders.
- structures
- Host halves of the shared shader structures:
CameraAttribs(Shaders/Common/public/BasicStructures.fxh),ScreenSpaceReflectionAttribs(Shaders/PostProcess/ScreenSpaceReflection/public/ScreenSpaceReflectionStructures.fxh) andTemporalAntiAliasingAttribs(Shaders/PostProcess/TemporalAntiAliasing/public/TemporalAntiAliasingStructures.fxh), with the headers’DEFAULT_VALUEdefaults. All are constant-buffer layouts (CHECK_STRUCT_ALIGNMENT: a multiple of 16 bytes). - temporal_
anti_ aliasing - Port of DiligentFX
PostProcess/TemporalAntiAliasing/{interface/TemporalAntiAliasing.hpp, src/TemporalAntiAliasing.cpp}(revision f26cfe5b901bf180c4a3c9bbd4d5df0b96536d4b). Copyright 2024-2026 Diligent Graphics LLC, licensed under the Apache License, Version 2.0 (vendor/DiligentFX/License.txt). Modified: rewritten in Rust over wgpu; origins and implementation notes are recorded in PROVENANCE.md.