Skip to content
Snippets Groups Projects
Commit 791b6638 authored by Vanessa Karolek's avatar Vanessa Karolek
Browse files

[#92] fix error with VK_NULL_HANDLE

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