Commit Graph

17 Commits

Author SHA1 Message Date
Alexander Overvoorde 7d8dbddb49
Fix broken link (fixes #395) 2025-01-22 22:37:39 +01:00
Hyungki Kim fe5f29e23f
fix misleading description (#376) 2024-03-06 20:31:38 +01:00
Chuigda WhiteGive 71b71e4841
replace "descriptor layout" with "descriptor set layout" (#358) 2023-09-25 21:31:00 +02:00
Lucas Merritt 6fa5edd222
Fix incorrect create image view error message (#334)
The function "createImageView" has a somewhat incorrect error message,
saying that it failed to create a texture image view. However, the
function is also used by more than simply the texture image view
creation process(e.g., the swapchain image view creation process, "createImageViews").
2023-05-09 21:39:12 +02:00
Alexander Overvoorde 1db3e81e45 Fix broken link 2023-02-22 22:46:56 +01:00
Charles Giessen 9fe64f9747 Edit tutorial to reset & record command buffers each frame (#255)
* Update tutorial for command buffer re-recording

Means the code now calls recordCommandBuffer every frame instead of ahead of time

Many changes to the structure of chapters 14 & 15, with small changes to subsequent
chapters.

Primary focus was shifting everything away from 'swapchain image count' to
MAX_FRAMES_IN_FLIGHT. This has caused a lot of chapter 15 to need to be rewritten.
Such as: Introducing fences alongside semaphores and not later; Waiting on a fence
at the start of the frame before introducing acquireNextImage; consolidating the
Frames In Flight concepts to apply to command buffers, fences, and semaphores at
the same time.

Chapter 14 saw command buffer allocation reduced to 1 at a time. This allows the
concept of Frames in Flight to not need introduction before having a triangle
drawing on the screen.

* Update introduction to semaphores and fences

Greatly improve the descriptions of semaphores and fences before their
introduction into the code. Provide examples with psuedo code.

By using max_frames_in_flight command buffers & semaphores, we dont
need to keep track of previously sumitted frames' fences and wait
on them "just in case". This removes a lot of the confusion I had
when I first was trying to understand the vulkan update loop.

* Remove accidental code changes

Un-comment vkDeviceWaitIdle and remove resizing of imagesInFlight (which was removed)

* Use uint32_t instead of size_t for currentFrame

* Address typos and fixup changes for re-recording command buffers PR

* Add description of fences needing explicit resetting while semaphores are automatic
* Elaborate on why 2 frames in flight are chosen

* Fix deadlock in resizing from resetting the fence too early

Because acquiring the swapchain image index may cause drawFrame to return early,
it was possible to cause the next vkWaitForFences to deadlock. By delaying fence
resetting till after acquiring, it prevents the deadlock.
2022-02-21 20:55:30 +01:00
Sascha Willems 0b7627b458 Changed links according to QA
Use Vulkan 1.3 spec
2022-02-06 14:21:27 +01:00
Sascha Willems dbe5f41c3b Updated links to chunked Vulkan 1.2 spec 2022-01-22 12:54:38 +01:00
Alexander Overvoorde 998f0d0c4a Properly remove GL_ARB_separate_shader_objects references (fixes #112) 2021-06-15 21:05:39 +02:00
Alexander Overvoorde 75f648e21e Fix maxSamplerAnisotropy limit not verified (fixes #216) 2020-11-29 16:42:47 +01:00
Alexander Overvoorde d22199ca94 Fix mirrored texture coordinates in tutorial (fixes #215) 2020-11-12 22:30:54 +01:00
maltekliemann cca007ac31 Fix description of vkAllocateDescriptorSets error 2020-10-27 15:16:23 +01:00
Pablo Delgado Krämer c05bff3b68 Fix wrong VkSamplerCreateInfo type assignments.
The four members of VkSamplerCreateInfo maxAnisotropy, mipLodBias,
minLod and maxLod are floats, but actually assigned integer values.
2020-05-05 15:05:37 +02:00
Alexander Overvoorde 4f8b81d234 Change code to use value initialization 2020-04-19 13:39:36 +02:00
Alexander Overvoorde 70b4e6b046 Fix wrong texture coordinates in texture mapping chapter 2020-04-19 13:06:43 +02:00
Alexander Overvoorde 4c08f3961d Fix tutorial mixing up linear and SRGB colors (fixes #163) 2020-02-05 21:58:48 +01:00
feyleth 7404a3f8a6 add generation for multy language 2019-06-17 18:17:59 +02:00