载入中...
搜索中...
未找到
eve::graphics::vulkan 命名空间参考

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()

vkb::PassRecordExecutor eve::graphics::vulkan::jobSystemPassExecutor ( eve::thread::JobSystem jobs)
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.

参数
jobsEngine JobSystem; must have an active beginFrame()/endFrame() bracket. May be null, in which case recording is serial.

在文件 FrameGraphJobs.h25 行定义.

引用了 eve::thread::JobSystem::createFrameTaskGroup(), eve::thread::TaskGroup::fork() , 以及 group.

被这些函数引用 recordFrameGraphWithJobSystem().

◆ recordFrameGraphWithJobSystem()

void eve::graphics::vulkan::recordFrameGraphWithJobSystem ( vkb::FrameGraph &  graph,
eve::thread::JobSystem jobs 
)
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.

参数
graphCompiled FrameGraph whose passes should be recorded.
jobsEngine JobSystem; must have an active beginFrame()/endFrame() bracket. May be null, in which case recording is serial.

在文件 FrameGraphJobs.h67 行定义.

引用了 graph, jobSystemPassExecutor() , 以及 recordFrameGraphWithJobSystem().

被这些函数引用 recordFrameGraphWithJobSystem().