Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96f8176

Browse files
committed
Improve correctness of statement about srcSubpass/dstSubpass requirements
1 parent 5fac998 commit 96f8176

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

en/03_Drawing_a_triangle/03_Drawing/02_Rendering_and_presentation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ subpass. The special value `VK_SUBPASS_EXTERNAL` refers to the implicit subpass
235235
before or after the render pass depending on whether it is specified in
236236
`srcSubpass` or `dstSubpass`. The index `0` refers to our subpass, which is the
237237
first and only one. The `dstSubpass` must always be higher than `srcSubpass` to
238-
prevent cycles in the dependency graph.
238+
prevent cycles in the dependency graph (unless one of the subpasses is
239+
`VK_SUBPASS_EXTERNAL`).
239240

240241
```c++
241242
dependency.srcStageMask = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT;

0 commit comments

Comments
 (0)