#35

Should AllocateDescriptorSets take []DescriptorSet rather than *DescriptorSet?

OpenNoofbizopened 7y ago

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

Activity

2
xlab7y ago

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

celer6y ago

+1