vulkan
vulkan copied to clipboard
Should AllocateDescriptorSets take []DescriptorSet rather than *DescriptorSet?
Like how CommandBuffers or other ones that have plural names, they generally take a slice rather than a pointer. It's possible to do it this way in Vulkan in C++ as follows
std::vector<VkDescriptorSet> descriptorSets;
vkAllocateDescriptorSets(device, &allocInfo, descriptorSets.data());
Yes, in most cases the difference between a reference and an array is not clear to the automated conveter. So it must be specified in the manifest — https://github.com/vulkan-go/vulkan/blob/master/vulkan.yml
+1