18 descriptorSet._descriptorSet = VK_NULL_HANDLE;
19 descriptorSet._device =
nullptr;
29 descriptorSet._descriptorSet = VK_NULL_HANDLE;
30 descriptorSet._device =
nullptr;
41 uint32_t dstArrayElement,
42 VkDescriptorType descriptorType,
43 const std::vector<VkDescriptorBufferInfo>& bufferInfos
45 VkWriteDescriptorSet write{
46 VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET,
51 static_cast<uint32_t
>(bufferInfos.size()),
58 vkUpdateDescriptorSets(static_cast<VkDevice>(*
_device), 1, &write, 0,
nullptr);
63 uint32_t dstArrayElement,
64 VkDescriptorType descriptorType,
65 const std::vector<VkDescriptorImageInfo>& imageInfos
67 VkWriteDescriptorSet write{
68 VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET,
73 static_cast<uint32_t
>(imageInfos.size()),
80 vkUpdateDescriptorSets(static_cast<VkDevice>(*
_device), 1, &write, 0,
nullptr);
VkDescriptorSet _descriptorSet
DescriptorSet & operator=(const DescriptorSet &)=delete
void updateBuffers(uint32_t dstBinding, uint32_t dstArrayElement, VkDescriptorType descriptorType, const std::vector< VkDescriptorBufferInfo > &bufferInfos) const
Update the descriptor set buffers.
void updateImages(uint32_t dstBinding, uint32_t dstArrayElement, VkDescriptorType descriptorType, const std::vector< VkDescriptorImageInfo > &imageInfos) const
Update the descriptor set images.