类 | |
| struct | ColorVertex |
| struct | GpuMesh |
| struct | GpuShader |
| struct | GpuTexture |
| class | Graphics |
| struct | Mesh3DClusteredUBO |
| struct | Mesh3DUBO |
| struct | MeshVertex |
| class | OffscreenCanvas |
| struct | TexturedVertex |
函数 | |
| vkb::PassRecordExecutor | jobSystemPassExecutor (eve::thread::JobSystem *jobs) |
| Build a vkb::PassRecordExecutor backed by the engine JobSystem. | |
| void | recordFrameGraphWithJobSystem (vkb::FrameGraph &graph, eve::thread::JobSystem *jobs) |
| Record a vkb::FrameGraph with the engine JobSystem as the parallel recording executor. | |
函数说明
◆ jobSystemPassExecutor()
|
inline |
Build a vkb::PassRecordExecutor backed by the engine JobSystem.
The returned executor records every pass in a layer concurrently (one frame-scoped job per pass), joins the layer, then continues with the next layer. Exposed separately so the executor contract can be unit-tested without a Vulkan device.
- 参数
-
jobs Engine JobSystem; must have an active beginFrame()/endFrame() bracket. May be null, in which case recording is serial.
在文件 FrameGraphJobs.h 第 25 行定义.
引用了 eve::thread::JobSystem::createFrameTaskGroup(), eve::thread::TaskGroup::fork() , 以及 group.
被这些函数引用 recordFrameGraphWithJobSystem().
◆ recordFrameGraphWithJobSystem()
|
inline |
Record a vkb::FrameGraph with the engine JobSystem as the parallel recording executor.
vkb::FrameGraph groups independent passes into layers; passes inside one layer share no dependency edge, so their command buffers can be recorded concurrently. This executor forks one frame-scoped job per pass in the layer, joins them, then moves to the next layer (layers stay sequential — that is the framegraph's threading contract).
The caller must keep a JobSystem frame bracket open (beginFrame() before, endFrame() after) so the fork/join groups come from the per-frame arena and recording allocates no job control blocks per frame.
- 参数
-
graph Compiled FrameGraph whose passes should be recorded. jobs Engine JobSystem; must have an active beginFrame()/endFrame() bracket. May be null, in which case recording is serial.
在文件 FrameGraphJobs.h 第 67 行定义.
引用了 graph, jobSystemPassExecutor() , 以及 recordFrameGraphWithJobSystem().
被这些函数引用 recordFrameGraphWithJobSystem().