VkPhysicalDevice *pPhysicalDevices)
{
VK_FROM_HANDLE(panvk_instance, instance, _instance);
- VK_OUTARRAY_MAKE(out, pPhysicalDevices, pPhysicalDeviceCount);
+ VK_OUTARRAY_MAKE_TYPED(VkPhysicalDevice, out,
+ pPhysicalDevices, pPhysicalDeviceCount);
VkResult result;
}
for (uint32_t i = 0; i < instance->physical_device_count; ++i) {
- vk_outarray_append(&out, p)
+ vk_outarray_append_typed(VkPhysicalDevice, &out, p)
{
*p = panvk_physical_device_to_handle(instance->physical_devices + i);
}
VkPhysicalDeviceGroupProperties *pPhysicalDeviceGroupProperties)
{
VK_FROM_HANDLE(panvk_instance, instance, _instance);
- VK_OUTARRAY_MAKE(out, pPhysicalDeviceGroupProperties,
- pPhysicalDeviceGroupCount);
+ VK_OUTARRAY_MAKE_TYPED(VkPhysicalDeviceGroupProperties, out,
+ pPhysicalDeviceGroupProperties,
+ pPhysicalDeviceGroupCount);
VkResult result;
if (instance->physical_device_count < 0) {
}
for (uint32_t i = 0; i < instance->physical_device_count; ++i) {
- vk_outarray_append(&out, p)
+ vk_outarray_append_typed(VkPhysicalDeviceGroupProperties, &out, p)
{
p->physicalDeviceCount = 1;
p->physicalDevices[0] =
uint32_t *pQueueFamilyPropertyCount,
VkQueueFamilyProperties2 *pQueueFamilyProperties)
{
- VK_OUTARRAY_MAKE(out, pQueueFamilyProperties, pQueueFamilyPropertyCount);
+ VK_OUTARRAY_MAKE_TYPED(VkQueueFamilyProperties2, out,
+ pQueueFamilyProperties,
+ pQueueFamilyPropertyCount);
- vk_outarray_append(&out, p)
+ vk_outarray_append_typed(VkQueueFamilyProperties2, &out, p)
{
p->queueFamilyProperties = panvk_queue_family_properties;
}
VkDrmFormatModifierPropertiesListEXT *list =
vk_find_struct(pFormatProperties->pNext, DRM_FORMAT_MODIFIER_PROPERTIES_LIST_EXT);
if (list) {
- VK_OUTARRAY_MAKE(out, list->pDrmFormatModifierProperties,
- &list->drmFormatModifierCount);
+ VK_OUTARRAY_MAKE_TYPED(VkDrmFormatModifierPropertiesEXT, out,
+ list->pDrmFormatModifierProperties,
+ &list->drmFormatModifierCount);
- vk_outarray_append(&out, mod_props) {
+ vk_outarray_append_typed(VkDrmFormatModifierProperties2EXT, &out, mod_props) {
mod_props->drmFormatModifier = DRM_FORMAT_MOD_LINEAR;
mod_props->drmFormatModifierPlaneCount = 1;
}