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

Skip to content

Commit 077b734

Browse files
committed
Clarify host synchronization in the context of mapped vertex buffer memory
1 parent 9321aef commit 077b734

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

04_Vertex_buffers/01_Vertex_buffer_creation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ matches the contents of the allocated memory. Do keep in mind that this may lead
290290
to slightly worse performance than explicit flushing, but we'll see why that
291291
doesn't matter in the next chapter.
292292

293+
Flushing memory ranges or using a coherent memory heap means that the driver will be aware of our writes to the buffer, but it doesn't mean that they are actually visible on the GPU yet. The transfer of data to the GPU is an operation that happens in the background and the specification simply [tells us](https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#synchronization-submission-host-writes) that it is guaranteed to be complete as of the next call to `vkQueueSubmit`.
294+
293295
## Binding the vertex buffer
294296

295297
All that remains now is binding the vertex buffer during rendering operations.

0 commit comments

Comments
 (0)