已晋升为 Vulkan 1.1 核心功能
本扩展针对部分应用在初始化阶段需要创建与更新大量 VkDescriptorSet 的场景而设计。由于大量更新操作往往使用相同的 VkDescriptorSetLayout 且更新相同的 binding,因此 descriptor update template 被设计为只传递一次更新信息。
VkDescriptorUpdateTemplate 中并不指定 descriptor 本身,而是指定应用提供的主机内存指针的偏移量,这些偏移会与传入 vkUpdateDescriptorSetWithTemplate 或 vkCmdPushDescriptorSetWithTemplateKHR 的指针结合使用。这样可以批量执行大量更新,无需将应用数据结构转换为严格定义的 Vulkan 数据结构。