Skip to main content

Module compute

Module compute 

Source
Expand description

On-demand compute dispatch for callers outside the render world’s own per-frame systems (e.g. background tasks). Unlike [crate::core::PipelineManager], which builds pipelines asynchronously across frames and is only usable from render-app ECS systems, this builds synchronously and caches by label, so it’s safe to call from any thread and cheap to call repeatedly.

Structs§

ComputeDispatcher
Caches a compiled pipeline + bind group layout per label, so repeat dispatches skip WGSL parsing/validation. Blocks the calling thread until the result is read back.