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 per label and pools GPU buffers (+ bind group) by shape, so a repeat dispatch only re-uploads buffer contents. Blocks until the result is read back.