Loading the code workspace…
Write a C program that models a Vulkan descriptor set layout and pool.
Requirements:
Vulkan's per-frame/per-material/per-object descriptor set split, used verbatim in engines like Unreal's Vulkan RHI and id Tech 7, exists to minimize descriptor rebinding, one of the most expensive CPU-side operations in a Vulkan frame. Descriptor pool sizing mistakes here are a common source of `VK_ERROR_OUT_OF_POOL_MEMORY` crashes in shipped Vulkan applications.