Skip to main content

Module renderer

Module renderer 

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

CameraFrame
Camera submission state for one frame.
ClipPlane
A world-space half-space clipping plane for section views.
ComputeFilterItem
A GPU compute filter item — references an existing uploaded mesh.
EffectsFrame
Global rendering effects and modifiers for one frame.
FrameData
All data needed to render one frame of the viewport.
GlyphItem
A set of instanced glyphs to render (e.g. velocity arrows).
InteractionFrame
Interaction and selection visualization state for one frame.
LightSource
A single light source with color and intensity.
LightingSettings
Per-frame lighting configuration for the viewport.
PointCloudItem
A point cloud item to render in the viewport.
PolylineItem
A polyline (stream tracer) item to render in the viewport.
PostProcessSettings
Optional post-processing effects applied after the main render pass.
RenderCamera
Canonical renderer-facing camera state.
ScalarBar
Scalar bar (colour legend) overlay descriptor.
SceneFrame
World-space scene content for one frame.
SceneRenderItem
Per-object render data for one frame.
StreamtubeItem
A streamtube item: polyline strips rendered as instanced 3D cylinder segments.
ViewportFrame
Viewport presentation settings for one frame.
ViewportRenderer
High-level renderer wrapping all GPU resources and providing framework-agnostic prepare() and paint() methods.
VolumeItem
A volume item to render via GPU ray-marching.

Enums§

ClipVolume
A volumetric clip region applied as an additional clipping test on top of any existing ClipPlanes. Fragments outside the volume are discarded.
ComputeFilterKind
Kind of GPU compute filter operation.
FilterMode
Whether a filter runs on CPU or GPU compute shader.
GlyphType
Glyph shape type.
LightKind
Light source type.
PointRenderMode
Render mode for point cloud items.
ScalarBarAnchor
Anchor corner for a ScalarBar.
ScalarBarOrientation
Orientation of a ScalarBar.
ShadowFilter
Shadow filtering mode.
SurfaceSubmission
Surface submission seam for world-space geometry.
ToneMapping
Tone mapping operator applied when HDR post-processing is enabled.