Expand description
Main viewport renderer wrapping all GPU resources.
ViewportRenderer — the main entry point for the viewport library.
Wraps ViewportGpuResources and provides prepare() / paint() methods
that take raw wgpu types. GUI framework adapters (e.g. the egui
CallbackTrait impl in the application crate) delegate to these methods.
Modules§
- shader_
hashes - Shader hash pinning for runtime integrity validation.
- stats
- Per-frame performance counters for the viewport renderer.
Structs§
- Camera
Frame - Camera submission state for one frame.
- Clip
Plane - A world-space half-space clipping plane for section views.
- Compute
Filter Item - A GPU compute filter item — references an existing uploaded mesh.
- Effects
Frame - Global rendering effects and modifiers for one frame.
- Frame
Data - All data needed to render one frame of the viewport.
- Glyph
Item - A set of instanced glyphs to render (e.g. velocity arrows).
- Interaction
Frame - Interaction and selection visualization state for one frame.
- Light
Source - A single light source with color and intensity.
- Lighting
Settings - Per-frame lighting configuration for the viewport.
- Point
Cloud Item - A point cloud item to render in the viewport.
- Polyline
Item - A polyline (stream tracer) item to render in the viewport.
- Post
Process Settings - Optional post-processing effects applied after the main render pass.
- Render
Camera - Canonical renderer-facing camera state.
- Scalar
Bar - Scalar bar (colour legend) overlay descriptor.
- Scene
Frame - World-space scene content for one frame.
- Scene
Render Item - Per-object render data for one frame.
- Streamtube
Item - A streamtube item: polyline strips rendered as instanced 3D cylinder segments.
- Viewport
Frame - Viewport presentation settings for one frame.
- Viewport
Renderer - High-level renderer wrapping all GPU resources and providing framework-agnostic
prepare()andpaint()methods. - Volume
Item - A volume item to render via GPU ray-marching.
Enums§
- Clip
Volume - A volumetric clip region applied as an additional clipping test on top of any
existing
ClipPlanes. Fragments outside the volume are discarded. - Compute
Filter Kind - Kind of GPU compute filter operation.
- Filter
Mode - Whether a filter runs on CPU or GPU compute shader.
- Glyph
Type - Glyph shape type.
- Light
Kind - Light source type.
- Point
Render Mode - Render mode for point cloud items.
- Scalar
BarAnchor - Anchor corner for a
ScalarBar. - Scalar
BarOrientation - Orientation of a
ScalarBar. - Shadow
Filter - Shadow filtering mode.
- Surface
Submission - Surface submission seam for world-space geometry.
- Tone
Mapping - Tone mapping operator applied when HDR post-processing is enabled.