
Record and Submit Your First Vulkan Command Buffer
Create a command pool, record a vkCmdFillBuffer into a command buffer, submit it with a fence, and read the result back from host-visible memory in C++.
Tag
7 posts

Create a command pool, record a vkCmdFillBuffer into a command buffer, submit it with a fence, and read the result back from host-visible memory in C++.

Create a VkDevice in C++ with queue create infos, Vulkan 1.3 features and the swapchain extension, then fetch graphics and present queues.

List the GPUs a Vulkan instance can see, score them by type and limits, and find the queue families for graphics, presentation, compute and transfer in C++.

Create a VkInstance in C++ with the Khronos validation layer, check that the layer and extensions exist first, and read the result with a working error path.

Install the LunarG Vulkan SDK on Windows, Linux or macOS, set the environment, and check the loader, driver and validation layers with vulkaninfo and vkcube.

Learn how Vulkan differs from OpenGL in state, command recording, memory, synchronization and validation, and whether a beginner should learn it first.

Learn Vulkan 1.3 from instance to frame loop in C++: devices, queues, swapchains, dynamic rendering, pipelines, synchronization, memory and debugging.