Skip to content

Commit 8ca0cc0

Browse files
fixed missing props
1 parent 52a8bf6 commit 8ca0cc0

3 files changed

Lines changed: 76 additions & 88 deletions

File tree

ZEngine/ZEngine/Hardwares/VulkanDevice.cpp

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -203,22 +203,12 @@ namespace ZEngine::Hardwares
203203

204204
if (/*(physical_device_feature.geometryShader == VK_TRUE) && (physical_device_feature.samplerAnisotropy == VK_TRUE) && */ ((physical_device_properties.deviceType == VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU) || (physical_device_properties.deviceType == VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU)))
205205
{
206-
PhysicalDevice = physical_device;
207-
PhysicalDeviceProperties = physical_device_properties;
208-
PhysicalDeviceDescriptorIndexingProperties = indexing_properties;
209-
PhysicalDeviceFeature = physical_device_feature;
210-
PhysicalDeviceSupportSampledImageBindless = (
211-
descriptor_indexing_features.runtimeDescriptorArray == VK_TRUE &&
212-
descriptor_indexing_features.descriptorBindingSampledImageUpdateAfterBind == VK_TRUE &&
213-
descriptor_indexing_features.descriptorBindingPartiallyBound == VK_TRUE &&
214-
descriptor_indexing_features.descriptorBindingUpdateUnusedWhilePending == VK_TRUE &&
215-
descriptor_indexing_features.descriptorIndexing == VK_TRUE
216-
);
217-
PhysicalDeviceSupportStorageBufferBindless = (
218-
descriptor_indexing_features.runtimeDescriptorArray == VK_TRUE &&
219-
descriptor_indexing_features.descriptorBindingPartiallyBound == VK_TRUE &&
220-
descriptor_indexing_features.descriptorIndexing == VK_TRUE
221-
);
206+
PhysicalDevice = physical_device;
207+
PhysicalDeviceProperties = physical_device_properties;
208+
PhysicalDeviceDescriptorIndexingProperties = indexing_properties;
209+
PhysicalDeviceFeature = physical_device_feature;
210+
PhysicalDeviceSupportSampledImageBindless = (descriptor_indexing_features.runtimeDescriptorArray == VK_TRUE && descriptor_indexing_features.descriptorBindingSampledImageUpdateAfterBind == VK_TRUE && descriptor_indexing_features.descriptorBindingPartiallyBound == VK_TRUE && descriptor_indexing_features.descriptorBindingUpdateUnusedWhilePending == VK_TRUE);
211+
PhysicalDeviceSupportStorageBufferBindless = (descriptor_indexing_features.runtimeDescriptorArray == VK_TRUE && descriptor_indexing_features.descriptorBindingPartiallyBound == VK_TRUE);
222212
vkGetPhysicalDeviceMemoryProperties(PhysicalDevice, &PhysicalDeviceMemoryProperties);
223213
break;
224214
}
@@ -332,12 +322,11 @@ namespace ZEngine::Hardwares
332322
physical_device_descriptor_indexing_features.shaderSampledImageArrayNonUniformIndexing = VK_TRUE;
333323
physical_device_descriptor_indexing_features.descriptorBindingSampledImageUpdateAfterBind = VK_TRUE;
334324
}
335-
336-
physical_device_descriptor_indexing_features.descriptorBindingPartiallyBound = VK_TRUE;
337-
physical_device_descriptor_indexing_features.runtimeDescriptorArray = VK_TRUE;
338-
physical_device_descriptor_indexing_features.descriptorIndexing = VK_TRUE;
339325

340-
device_features_2.pNext = &physical_device_descriptor_indexing_features;
326+
physical_device_descriptor_indexing_features.descriptorBindingPartiallyBound = VK_TRUE;
327+
physical_device_descriptor_indexing_features.runtimeDescriptorArray = VK_TRUE;
328+
329+
device_features_2.pNext = &physical_device_descriptor_indexing_features;
341330
}
342331

343332
device_create_info.pNext = &device_features_2;

0 commit comments

Comments
 (0)