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);