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
import-obj
(enabled by default) — Support importing .obj filesimport-gltf
(enabled by default) — Support importing .gltf and .glb filesimport-stl
(enabled by default) — Support importing binary & ascii .stl filesserde
— Enable (de)serialization using serde.
Re-exports§
pub use importer::CpuMeshInstance;
pub use importer::CpuModel;
pub use importer::CpuModelMeshKey;
pub use texture_info::Texture2DBufferInfo;
pub use view_builder::ViewBuilder;
Modules§
- device_
caps - external
- importer
- mesh
- renderer
- resource_
managers - Resource managers are concerned with mapping (typically) higher level user data to their Gpu representation.
- texture_
info - video
- view_
builder
Macros§
- include_
file - A macro to read the contents of a file on disk, and resolve #import clauses as required.
- include_
shader_ module - Create a shader module using the
include_file!
macro and set the path name as debug string.
Structs§
- Color32
- This format is used for space-efficient color representation (32 bits).
- Debug
Label - Label for resources. Optimized out in release builds.
- File
Resolver - The
FileResolver
handles both resolving import clauses and doing the actual string interpolation. - File
Server - A noop implementation of a
FileServer
. - Hsva
- Hue, saturation, value, alpha. All in the range [0, 1]. No premultiplied alpha.
- Import
Clause - A pre-parsed import clause, as in
#import <something>
. - Line
Drawable Builder - Builder for a vector of line strips, making it easy to create
crate::renderer::LineDrawData
. - Line
Strip Builder - Outline
Config - Outline
Mask Preference - What outline (if any) should be drawn.
- Picking
Layer Id - Combination of
PickingLayerObjectId
andPickingLayerInstanceId
. - Picking
Layer Instance Id - The second 64bit of the picking layer.
- Picking
Layer Object Id - The first 64bit of the picking layer.
- Picking
Layer Processor - Manages the rendering of the picking layer pass, its render targets & readback buffer.
- Point
Cloud Batch Builder - Point
Cloud Builder - Builder for point clouds, making it easy to create
crate::renderer::PointCloudDrawData
. - Queueable
Draw Data - Type erased draw data that can be submitted directly to the view builder.
- RectF32
- A 2D rectangle with float coordinates.
- RectInt
- A 2D rectangle with integer coordinates.
- Rect
Transform - Defines a transformation from a rectangular region of interest into a rectangular target region.
- Render
Config - Configures global properties of the renderer.
- Render
Context - Any resource involving wgpu rendering which can be re-used across different scenes. I.e. render pipelines, resource pools, etc.
- Rgba
- 0-1 linear space
RGBA
color with premultiplied alpha. - Rgba32
Unmul - RGBA color in sRGB gamma space, with separate/unmultiplied linear alpha.
- Screenshot
Processor - Search
Path - Specifies where to look for imports when both absolute and relative resolution fail.
- Size
- A size of something in either scene units or ui points.
- Wgpu
Resource Pool Statistics
Enums§
- Colormap
- CpuWrite
GpuRead Error - Msaa
Mode - Controls MSAA (Multi-Sampling Anti-Aliasing)
- Render
Context Error
Traits§
- File
System - A very limited filesystem, just enough for our internal needs.
Functions§
- adapter_
info_ summary - A human-readable summary about an adapter
- colormap_
cyan_ to_ yellow_ srgb - Returns a gamma-space sRGB in 0-255 range.
- colormap_
inferno_ srgb - Returns sRGB polynomial approximation from Inferno color map, assuming
t
is normalized. - colormap_
magma_ srgb - Returns sRGB polynomial approximation from Magma color map, assuming
t
is normalized. - colormap_
plasma_ srgb - Returns sRGB polynomial approximation from Plasma color map, assuming
t
is normalized. - colormap_
srgb - colormap_
turbo_ srgb - Returns sRGB polynomial approximation from Turbo color map, assuming
t
is normalized. - colormap_
viridis_ srgb - Returns sRGB polynomial approximation from Viridis color map, assuming
t
is normalized. - get_
filesystem - Returns the recommended filesystem handle for the current platform.
- grayscale_
srgb - Returns an sRGB gray value, assuming
t
is normalized. - new_
recommended_ file_ resolver - Returns the recommended
FileResolver
for the current platform/target. - pad_
rgb_ to_ rgba - Pad
RGB
toRGBA
with the given alpha.
Type Aliases§
- Depth
Offset - Depth offset used to resolve z-fighting between 2D primitives.
- GpuReadback
Identifier - Identifier used to identify a buffer upon retrieval of the data.
- Recommended
File Resolver - The recommended
FileResolver
type for the current platform/target.