ShaderBuildWorker
The SDF shader forge's executor on the batch pool.
| Inherits | QObject and batch::IBatchWorker |
In the namespace construct::shader. Declared in src/libs/libconstruct/construct/shader/ShaderBuildWorker.hpp.
Detailed description
construct-scene-evaluator §EV-A6.2. Every shader build in the process is a request to SdfShaderForge; when the host has given the forge a batch queue, each build becomes one `construct/shader_forge` job that this worker runs — a thin progress wrapper, so the GUI's chip shows one entry per pending build and "how much runs at once" has one answer (batch-orchestration BO-13 to BO-15).
`Pooled`: run() executes the forge job synchronously on a thread libbatch hands it, at compileThreadPriority(), which the dispatcher applies for this job and restores afterwards (§BOC-5b). No detached work, nothing to drain: `~ConstructShell` disables dispatching and calls `BatchDispatcher::waitForPooledJobs()`, which waits for exactly the jobs this worker runs.
Until 2026-09-25 this worker compiled `construct/shader_rebuild` jobs from a ShaderBuildContextStore that SDFLayer filled and polled; the forge owns the sources and the outcome now.