07. Synchronization

Vulkan Synchronization | "Understand Fences, Semaphores, Barriers,..." | Vulkan Lecture Series Ep. 7Computer Graphics at TU Wien

Command buffer 命令

Pipeline Stages

image-20230127225028349

Sync Objects

Binary Semaphores

1656921670422

Timeline Semaphores

image-20230127225712516

Excution Barriers

image-20230127225948175

Graphics pipline 阶段对应的 Stage mask

image-20230127230113347

Memory Barriers

Memory Availability and Visibility ,当内存非 Availability 时,禁止后续 cmd 访问。

Excution Barriers 是从渲染流程着手,Memory Barrier 是从内存是否是最新着手,防止后续 cmd 访问,来使 cmd 同步。

Sub-pass Dependencies

通过 subpass 依赖来同步输入输出纹理

image-20230127230845028

Events

Set 和 Wait Event 共同组成一个 Barrier 实现

image-20230127231139179

Overview of Synchronization Methods

image-20230127231159278

最后更新于

这有帮助吗?