RUVIDEO
Поделитесь видео 🙏

Command Buffers Overview - Vulkan Game Engine Tutorial 05 part 2

!! CORRECTIONS !!!
Note that in PART 1 of this tutorial (around the 5 minute mark) I fix the mistake last week, but I also left in an identical mistake within VkPipelineColorBlendStateCreateInfo pointing to the colorBlendAttachment!
If you are using the MSVC you will be required to fix this. If not, then you can wait until tutorial 8 where I fix things there. My apologies!
The fix is to pass in a reference of config info to be initialised rather than returning a copy.
https://github.com/blurrypiano/littleVulkanEngine/commit/a867ab39c43ccc89ca744db84137df179b41daa7

In this Vulkan Game engine tutorial we cover command buffers and use them to draw a triangle. T

Note: The start of this video is a bit misleading in that I overemphasize an advantage of command buffers being that you can record them once and re-use them. Re-recording a command buffer is actually very cheap so you should not be afraid to do so!

Command buffers are one of the reasons for improved performance over previous APIs such as openGL. Instead of submitting draw commands every frame, we can record our draw commands to a command buffer, and submit the entire buffer. This minimizes the overhead accumulated by having to submit each command separately and allows for some driver optimization because it will know ahead of time all the instructions that need to be performed. Commad Buffer objects can also be re-used when draw commands are not changing between frames, as well as makes multi-thread recording of draw calls possible.

-- Corrections --
At 7:11 I note that clearValues[0].depthStencil = 0 would be ignored, but VkClearValue is a union, therefore, "color" & "depthStencil" occupy the same memory so, setting depthStencil in clearValues[0] would actually corrupt the value set in color. (Rather than be ignored).

** Timecodes **
0:00 - What is a command buffer?
1:51 - Command buffer Allocation
4:10 - Preparing to record
8:29 - Bind Graphics Pipeline
9:27 - Record commands
10:46 - Implementing drawFrame()
12:37 - Drawing a triangle
13:36 - Freeing command buffers?
13:55 - Change the triangles color
15:22 - Outro

** Makefile download **
https://drive.google.com/drive/folders/1v5GnxQn-a427wy4Mta4jN-B7sgEn2RXl?usp=sharing

** View playlist **
https://www.youtube.com/watch?v=Y9U9IE0gVHA&list=PL8327DO66nu9qYVKLDmdLW_84-yE4auCR&ab_channel=BrendanGalea

** Tutorial Series introduction video **
https://youtu.be/Y9U9IE0gVHA

** View File Changes (also shows changes from part 1) **
https://github.com/blurrypiano/littleVulkanEngine/commit/1bcfe410b578e75823b476e7dd48c34ca879ac11

** Some other resources **
My github for this series - https://github.com/blurrypiano/littleVulkanEngine
Official vulkan samples - https://github.com/KhronosGroup/Vulkan-Samples
Vulkan Tutorial command buffers - https://vulkan-tutorial.com/Drawing_a_triangle/Drawing/Command_buffers


“Vulkan and the Vulkan logo are registered trademarks of the Khronos Group Inc.”

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Command Buffers Overview - Vulkan Game Engine Tutorial 05 part 2», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.