Skip to content
Snippets Groups Projects
Verified Commit 8024e3ee authored by Josch Morgenstern's avatar Josch Morgenstern
Browse files

#[111] fix compiler error

parent ce918e00
No related branches found
No related tags found
1 merge request!95Resolve "Wassersimulation mit Interaktion"
Pipeline #27205 passed
......@@ -79,7 +79,7 @@ namespace vkcv
}
//create the descriptor set's layout from the binding data gathered above
vk::DescriptorSetLayout vulkanHandle = VK_NULL_HANDLE;
vk::DescriptorSetLayout vulkanHandle;
vk::DescriptorSetLayoutCreateInfo layoutInfo({}, bindingsVector);
auto result = m_Device.createDescriptorSetLayout(&layoutInfo, nullptr, &vulkanHandle);
if (result != vk::Result::eSuccess) {
......@@ -96,7 +96,7 @@ namespace vkcv
{
//create and allocate the set based on the layout provided
DescriptorSetLayout setLayout = m_DescriptorSetLayouts[setLayoutHandle.getId()];
vk::DescriptorSet vulkanHandle = VK_NULL_HANDLE;
vk::DescriptorSet vulkanHandle;
vk::DescriptorSetAllocateInfo allocInfo(m_Pools.back(), 1, &setLayout.vulkanHandle);
auto result = m_Device.allocateDescriptorSets(&allocInfo, &vulkanHandle);
if(result != vk::Result::eSuccess)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment