Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhdanNV committed Sep 20, 2024
1 parent 6293623 commit abd4478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Creation/Creation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,11 @@ NRI_API Result NRI_CALL nriEnumerateAdapters(AdapterDesc* adapterDescs, uint32_t
if (result == VK_SUCCESS && deviceGroupNum) {
if (adapterDescs) {
// Query device groups
VkPhysicalDeviceGroupProperties* deviceGroupProperties = AllocateScratch(m_Device, VkPhysicalDeviceGroupProperties, deviceGroupNum);
VkPhysicalDeviceGroupProperties* deviceGroupProperties = (VkPhysicalDeviceGroupProperties*)_alloca(sizeof(VkPhysicalDeviceGroupProperties) * deviceGroupNum);
vkEnumeratePhysicalDeviceGroups(instance, &deviceGroupNum, deviceGroupProperties);

// Query device groups properties
AdapterDesc* adapterDescsSorted = AllocateScratch(m_Device, AdapterDesc, deviceGroupNum);
AdapterDesc* adapterDescsSorted = (AdapterDesc*)_alloca(sizeof(AdapterDesc) * deviceGroupNum);
for (uint32_t i = 0; i < deviceGroupNum; i++) {
VkPhysicalDeviceIDProperties deviceIDProperties = {VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ID_PROPERTIES};
VkPhysicalDeviceProperties2 properties2 = {VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2};
Expand Down

0 comments on commit abd4478

Please sign in to comment.