Skip to main content

Crate valo_renderer

Crate valo_renderer 

Source
Expand description

valo-renderer replays a recorded display list into wgpu render passes.

Hosts normally use the valo crate’s Context. This crate is the GPU core that context wraps: it plans, encodes, and submits, and it owns only caches — not application content. It talks to wgpu directly; there is no second GPU abstraction.

  • HostBuffer: per-frame bump arena for transient uniforms and vertices. A 3-frame ring of persistent buffers means warm frames create nothing — the cost that matters most on wasm, where every create crosses into JS.
  • PipelineCache: grow-only map of pipeline variants (format × blend × kind).

Structs§

AtlasReport
AtlasReport summarizes one glyph-atlas family.
HostBuffer
HostBuffer bump-allocates per-draw uniforms and transient vertex data.
ImageDesc
ImageDesc describes an RGBA8 image upload.
ImageStore
ImageStore owns uploaded images, mip generation, samplers, and bind groups.
MemoryReport
MemoryReport summarizes resources retained between frames.
PipelineCache
PipelineCache holds compiled render-pipeline variants.
PipelineKey
PipelineKey identifies one compiled render pipeline variant.
PoolReport
PoolReport summarizes one resource pool or cache.
RenderStats
RenderStats reports the work performed by one render operation.
RenderTarget
RenderTarget is the destination for one render operation.
RendererCore
RendererCore replays display lists on a host-owned wgpu device.
TargetPool
TargetPool reuses offscreen textures across frames.
TextTiers
TextTiers selects the text rendering method by device-space font size.
WgpuCounters
WgpuCounters reports wgpu’s internal live-object accounting.

Enums§

Frag
Frag selects the fragment shader that colors a covered pixel.
PipelineKind
PipelineKind selects the vertex source and the color, depth, and stencil role.

Constants§

DEPTH_FORMAT
DEPTH_FORMAT is the combined depth/stencil format used by content pipelines.
IMAGE_FORMAT
IMAGE_FORMAT is the GPU format of every uploaded image texture.
SAMPLE_COUNT
SAMPLE_COUNT is the MSAA sample count used by content pipelines.