Crate re_renderer
source ·Expand description
Rerun’s renderer.
A wgpu based renderer wgpu for all your visualization needs.
Used in re_runner to display the contents of any view contents other than pure UI.
Feature flags
-
arrow— Support for Arrow datatypes for end-to-end zero-copy. -
import-obj(enabled by default) — Support importing .obj files -
import-gltf(enabled by default) — Support importing .gltf and .glb files -
serde— Enable (de)serialization using serde. -
webgl— Render using webgl instead of webgpu on wasm builds.
Re-exports
pub use view_builder::AutoSizeConfig;pub use view_builder::ViewBuilder;
Modules
- Resource managers are concerned with mapping (typically) higher level user data to their Gpu representation.
Macros
- A macro to read the contents of a file on disk, and resolve #import clauses as required.
- Create a shader module using the
include_file!macro and set the path name as debug string.
Structs
- This format is used for space-efficient color representation (32 bits).
- Label for resources. Optimized out in release builds.
- The
FileResolverhandles both resolving import clauses and doing the actual string interpolation. - A file server capable of watching filesystem events in the background and resolve #import clauses in files.
- A pre-parsed import clause, as in
#import <something>. - Builder for a vector of line strips, making it easy to create
crate::renderer::LineDrawData. - What outline (if any) should be drawn.
- Combination of
PickingLayerObjectIdandPickingLayerInstanceId. - The second 64bit of the picking layer.
- The first 64bit of the picking layer.
- Manages the rendering of the picking layer pass, its render targets & readback buffer.
- Builder for point clouds, making it easy to create
crate::renderer::PointCloudDrawData. - Type erased draw data that can be submitted directly to the view builder.
- A 2D rectangle with float coordinates.
- A 2D rectangle with integer coordinates.
- Defines a transformation from a rectangular region of interest into a rectangular target region.
- Any resource involving wgpu rendering which can be re-used across different scenes. I.e. render pipelines, resource pools, etc.
- 0-1 linear space
RGBAcolor with premultiplied alpha. - RGBA color in sRGB gamma space, with separate/unmultiplied linear alpha.
- Specifies where to look for imports when both absolute and relative resolution fail.
- A size of something in either world-units, screen-units, or unsized.
Enums
Traits
- A very limited filesystem, just enough for our internal needs.
Functions
- Returns sRGB polynomial approximation from Inferno color map, assuming
tis normalized. - Returns sRGB polynomial approximation from Magma color map, assuming
tis normalized. - Returns sRGB polynomial approximation from Plasma color map, assuming
tis normalized. - Returns sRGB polynomial approximation from Turbo color map, assuming
tis normalized. - Returns sRGB polynomial approximation from Viridis color map, assuming
tis normalized. - Returns the recommended filesystem handle for the current platform.
- Returns an sRGB gray value, assuming
tis normalized. - Returns the recommended
FileResolverfor the current platform/target. - Pad
RGBtoRGBAwith the given alpha.
Type Aliases
- Depth offset used to resolve z-fighting between 2d primitives.
- Identifier used to identify a buffer upon retrieval of the data.
- The recommended
FileResolvertype for the current platform/target.