vulkan icon indicating copy to clipboard operation
vulkan copied to clipboard

Should AllocateDescriptorSets take []DescriptorSet rather than *DescriptorSet?

Open Noofbiz opened this issue 7 years ago • 2 comments

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());

Noofbiz avatar Jan 01 '19 23:01 Noofbiz

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

xlab avatar Jan 02 '19 12:01 xlab

+1

celer avatar Dec 31 '19 22:12 celer