Commit Graph

19 Commits

Author SHA1 Message Date
Chuigda WhiteGive 71b71e4841
replace "descriptor layout" with "descriptor set layout" (#358) 2023-09-25 21:31:00 +02:00
Gleb Ezhov e16c142424
Added missing dot (#348) 2023-07-16 19:13:16 +02:00
John Kim b1751a90aa Update 01_Descriptor_pool_and_sets.md (#312)
Fix small typo
2022-11-07 22:50:25 +01:00
Sascha Willems 4454f6d4c5 Persistent mapping for uniform buffers (#310)
* Updated UBO chapter and removed in-place map and unmap of the ubo

Replaced it with map-once aka "persistent mapping"

* Fixed index for uniform buffer selection

* Update code samples to persistent ubo mapping

* Resize vector for mapped uniform buffer pointers

* Use calculated buffer size for mapping

* Update code samples to persistent ubo mapping

* Spelling
2022-11-03 23:15:45 +01:00
Alexander Overvoorde 54f49ba59b Fix inconsistency between tutorial and code 2022-05-21 16:54:45 +02:00
Alexander Overvoorde 71120ada6c Fix parts of the tutorial that weren't update to match the code (fixes #288) 2022-05-16 21:33:41 +02:00
Teodor Spæren 8f6b5f013a Remove outdated reference to swapchain (#285)
This commit removes leftover references to the number of swapchain
images in the "Uniform buffers" chapter.
2022-05-02 20:28:15 +02:00
Onyrew e167e831e5 vkDestroyDescriptorPool added to Descriptor pool and sets (#273)
* vkDestroyDescriptorPool  added

* dots

* vkDestroyDescriptorPool added for French chapter
2022-03-01 22:40:26 +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
arcturu 67e8f38f2c Fix typo 2020-06-28 12:33:05 +09:00
Alexander Overvoorde 233b1d4855 Replace dead link to transformation matrices guide 2020-06-04 00:05:41 +02:00
LittleWhite-tb fc705dbc03 Superfluous semi-colon 2020-05-19 21:08:23 +02:00
Alexander Overvoorde 4f8b81d234 Change code to use value initialization 2020-04-19 13:39:36 +02:00
Alexander Overvoorde ec292bfdb6 Drop numeric_limits in favour of limits in stdint.h 2019-08-24 21:48:42 +02:00
Alexander Overvoorde 1906fe6937 Fix clockwise/counter-clockwise mixup 2019-08-22 21:46:48 +02:00
feyleth 7404a3f8a6 add generation for multy language 2019-06-17 18:17:59 +02:00