indexDevice = 0; indexDevice < physicaldeviceCount; indexDevice++)
                  
                  
                  {
                  
                  
                          vkGetPhysicalDeviceProperties(physicalDevices[indexDevice], &deviceProperties[indexDevice]);
                  
                  
                          vkGetPhysicalDeviceFeatures(physicalDevices[indexDevice], &deviceFeatures[indexDevice]);
                  
                  
                  
                  
                  
                          vkEnumerateDeviceExtensionProperties(physicalDevices[indexDevice], nullptr, &(extensionCounts[indexDevice]), nullptr);
                  
                  
                          extensionProperties[indexDevice] = new VkExtensionProperties[extensionCounts[indexDevice]];
                  
                  
                          vkEnumerateDeviceExtensionProperties(physicalDevices[indexDevice], nullptr, &(extensionCounts[indexDevice]), extensionProperties[indexDevice]);
                  
                  
                  
                  
                  
                          vkGetPhysicalDeviceQueueFamilyProperties(physicalDevices[indexDevice], &queueFamilyCounts[indexDevice], nullptr);
                  
                  
                          queueFamiliesProperties[indexDevice] = new VkQueueFamilyProperties[queueFamilyCounts[indexDevice]];
                  
                  
                          vkGetPhysicalDeviceQueueFamilyProperties(physicalDevices[indexDevice], &queueFamilyCounts[indexDevice], queueFamiliesProperties[indexDevice]);
                  
                  
                  }
                  
                  
                
А чем он так плох
он не плох, но в про.графоне кто-то скидывал портянку на 30 кб
если delete нет, то, конечно, не ок. Ну и в любом случае так писать на плюсах плохо. Бери человеческую обертку
Обсуждают сегодня