Add sample TexelBuffer; adjust vk::su::updateDescriptorSets (#352)
This commit is contained in:
committed by
Markus Tavenrath
parent
d811c3a7e2
commit
5414a2e232
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user