![cpp](https://habrastorage.org/r/w120/webt/5a/80/ee/5a80eee835721314512847.png)
C++
- 1 ответ
- 0 вопросов
1
Вклад в тег
uint32_t queueFamilyPropertiesCount = 0;
vkGetPhysicalDeviceQueueFamilyProperties(
physicalDevice, &queueFamilyPropertiesCount, 0);
//Если пишите на C
VkQueueFamilyProperties* const queueFamilyProperties =
(VkQueueFamilyProperties*)malloc(
sizeof(VkQueueFamilyProperties) * queueFamilyPropertiesCount);
//Если пишите на C++
VkQueueFamilyProperties* const queueFamilyProperties =
new VkQueueFamilyProperties[queueFamilyPropertiesCount];
vkGetPhysicalDeviceQueueFamilyProperties(physicalDevice,
&queueFamilyPropertiesCount, queueFamilyProperties);