Skip to main content

Crate sgl_post_fx

Crate sgl_post_fx 

Source
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.

UpstreamHere
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.fxhstructures
Shaders/**, DiligentCore HLSLDefinitions.fxhshaders/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) and TemporalAntiAliasingAttribs (Shaders/PostProcess/TemporalAntiAliasing/public/TemporalAntiAliasingStructures.fxh), with the headers’ DEFAULT_VALUE defaults. 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.