
Create a Logical Device and Retrieve Queues in Vulkan
Create a VkDevice in C++ with queue create infos, Vulkan 1.3 features and the swapchain extension, then fetch graphics and present queues.
Tag
31 posts

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++.

Turn a Verilog counter into a C++ model with Verilator 5, drive its clock and reset from main(), check outputs in C++ and write a VCD trace with VerilatedVcdC.

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.

Guard shared state in C++20 with std::mutex and std::lock_guard so the lock is released on every path, even exceptions. Includes unique_lock.

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.

A use-after-free reads or writes memory after free released it. See how it happens in C and C++, how ASan reports it and patterns that stop it.

Add Dear ImGui 1.91 to a GLFW 3.4 and OpenGL 3.3 program in C++, wire the two backends, draw a debug window with sliders, and stop input leaking to the scene.

Launch threads in C++ with std::thread and the C++20 std::jthread, which joins automatically. Covers arguments, references, join rules and std::terminate.

Why threaded C and C++ programs stop scaling, and how to find and fix serial sections, lock contention, false sharing, bandwidth limits and bad work splits.

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