Compute chapter still uses fences

Open
#130 0 comments 0 reactions 1 assignee View on GitHub

@SaschaWillems is already working on this.

Since Oct 5, 2025.

Assessment

This issue has not been assessed yet.

Description

Just noticed that while the reworked tutorial made the compute chapter use timeline semaphores it's still using fences to wait on the host side. But timeline semaphores can replace that, and so we should do that in the tutorial.

This is what I do in my code to replace fences with timeline semaphores:

VkSemaphoreWaitInfo semaphoreWaitInfo{ .sType = VK_STRUCTURE_TYPE_SEMAPHORE_WAIT_INFO };
semaphoreWaitInfo.semaphoreCount = 1;
semaphoreWaitInfo.pSemaphores = &timeLineSemaphore.handle;
semaphoreWaitInfo.pValues = &timeLineSemaphore.value;
vkWaitSemaphoresKHR(device, &semaphoreWaitInfo, UINT64_MAX);
Dominant language
C++
Stars
424
Forks
127
Avg merge
2d 21h
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from KhronosGroup/Vulkan-Tutorial

All issues in KhronosGroup/Vulkan-Tutorial

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.