Add sample TexelBuffer; adjust vk::su::updateDescriptorSets (#352)

This commit is contained in:
Andreas Süßenbach
2019-07-03 09:23:56 +02:00
committed by Markus Tavenrath
parent d811c3a7e2
commit 5414a2e232
12 changed files with 248 additions and 19 deletions

View File

@@ -94,8 +94,8 @@ int main(int /*argc*/, char ** /*argv*/)
std::vector<vk::UniqueDescriptorSet> descriptorSets = device->allocateDescriptorSetsUnique(vk::DescriptorSetAllocateInfo(descriptorPool.get(), 2, layouts));
assert(descriptorSets.size() == 2);
vk::su::updateDescriptorSets(device, descriptorSets[0], {{vk::DescriptorType::eUniformBuffer, uniformBufferData.buffer}}, greenTextureData);
vk::su::updateDescriptorSets(device, descriptorSets[1], {{vk::DescriptorType::eUniformBuffer, uniformBufferData.buffer}}, checkeredTextureData);
vk::su::updateDescriptorSets(device, descriptorSets[0], {{vk::DescriptorType::eUniformBuffer, uniformBufferData.buffer, vk::UniqueBufferView()}}, greenTextureData);
vk::su::updateDescriptorSets(device, descriptorSets[1], {{vk::DescriptorType::eUniformBuffer, uniformBufferData.buffer, vk::UniqueBufferView()}}, checkeredTextureData);
/* VULKAN_KEY_START */