Lines Matching refs:device
27 vn_GetDeviceQueue2(VkDevice device,
31 struct vn_device *dev = vn_device_from_handle(device);
124 const VkAllocationCallbacks *alloc = &queue->device->base.base.alloc;
202 vn_semaphore_reset_wsi(queue->device, sem);
310 const VkAllocationCallbacks *alloc = &queue->device->base.base.alloc;
318 for (uint32_t i = 0; i < queue->device->queue_family_count; i++) {
319 if (queue->device->queue_families[i] == queue->family)
355 struct vn_device *dev = queue->device;
457 struct vn_device *dev = queue->device;
486 VkDevice device = vn_device_to_handle(queue->device);
492 result = vn_WaitForFences(device, 1, &queue->wait_fence, true, UINT64_MAX);
493 vn_ResetFences(device, 1, &queue->wait_fence);
495 return vn_result(queue->device->instance, result);
612 vn_CreateFence(VkDevice device,
618 struct vn_device *dev = vn_device_from_handle(device);
651 vn_async_vkCreateFence(dev->instance, device, pCreateInfo, NULL, pFence);
666 vn_DestroyFence(VkDevice device,
671 struct vn_device *dev = vn_device_from_handle(device);
679 vn_async_vkDestroyFence(dev->instance, device, _fence, NULL);
691 vn_ResetFences(VkDevice device, uint32_t fenceCount, const VkFence *pFences)
694 struct vn_device *dev = vn_device_from_handle(device);
698 vn_call_vkResetFences(dev->instance, device, fenceCount, pFences);
700 vn_async_vkResetFences(dev->instance, device, fenceCount, pFences);
719 vn_GetFenceStatus(VkDevice device, VkFence _fence)
721 struct vn_device *dev = vn_device_from_handle(device);
739 vn_async_vkWaitForFences(dev->instance, device, 1, &_fence,
743 result = vn_call_vkGetFenceStatus(dev->instance, device, _fence);
758 vn_find_first_signaled_fence(VkDevice device,
763 VkResult result = vn_GetFenceStatus(device, fences[i]);
771 vn_remove_signaled_fences(VkDevice device, VkFence *fences, uint32_t *count)
775 VkResult result = vn_GetFenceStatus(device, fences[i]);
807 vn_WaitForFences(VkDevice device,
814 struct vn_device *dev = vn_device_from_handle(device);
833 result = vn_remove_signaled_fences(device, fences, &fenceCount);
841 result = vn_find_first_signaled_fence(device, pFences, fenceCount);
880 vn_ImportFenceFdKHR(VkDevice device,
884 struct vn_device *dev = vn_device_from_handle(device);
907 vn_GetFenceFdKHR(VkDevice device,
912 struct vn_device *dev = vn_device_from_handle(device);
974 vn_CreateSemaphore(VkDevice device,
980 struct vn_device *dev = vn_device_from_handle(device);
1009 vn_async_vkCreateSemaphore(dev->instance, device, pCreateInfo, NULL,
1018 vn_DestroySemaphore(VkDevice device,
1023 struct vn_device *dev = vn_device_from_handle(device);
1031 vn_async_vkDestroySemaphore(dev->instance, device, semaphore, NULL);
1041 vn_GetSemaphoreCounterValue(VkDevice device,
1046 struct vn_device *dev = vn_device_from_handle(device);
1051 return vn_call_vkGetSemaphoreCounterValue(dev->instance, device, semaphore,
1056 vn_SignalSemaphore(VkDevice device, const VkSemaphoreSignalInfo *pSignalInfo)
1059 struct vn_device *dev = vn_device_from_handle(device);
1063 vn_call_vkSignalSemaphore(dev->instance, device, pSignalInfo);
1065 vn_async_vkSignalSemaphore(dev->instance, device, pSignalInfo);
1071 vn_find_first_signaled_semaphore(VkDevice device,
1079 vn_GetSemaphoreCounterValue(device, semaphores[i], &val);
1087 vn_remove_signaled_semaphores(VkDevice device,
1096 vn_GetSemaphoreCounterValue(device, semaphores[i], &val);
1108 vn_WaitSemaphores(VkDevice device,
1113 struct vn_device *dev = vn_device_from_handle(device);
1140 result = vn_remove_signaled_semaphores(device, semaphores, values,
1150 device, pWaitInfo->pSemaphores, pWaitInfo->pValues,
1161 VkDevice device, const VkImportSemaphoreFdInfoKHR *pImportSemaphoreFdInfo)
1164 struct vn_device *dev = vn_device_from_handle(device);
1188 vn_GetSemaphoreFdKHR(VkDevice device,
1193 struct vn_device *dev = vn_device_from_handle(device);
1249 vn_CreateEvent(VkDevice device,
1255 struct vn_device *dev = vn_device_from_handle(device);
1274 vn_async_vkCreateEvent(dev->instance, device, pCreateInfo, NULL,
1283 vn_DestroyEvent(VkDevice device,
1288 struct vn_device *dev = vn_device_from_handle(device);
1296 vn_async_vkDestroyEvent(dev->instance, device, event, NULL);
1305 vn_GetEventStatus(VkDevice device, VkEvent event)
1308 struct vn_device *dev = vn_device_from_handle(device);
1315 result = vn_call_vkGetEventStatus(dev->instance, device, event);
1321 vn_SetEvent(VkDevice device, VkEvent event)
1324 struct vn_device *dev = vn_device_from_handle(device);
1329 vn_async_vkSetEvent(dev->instance, device, event);
1331 VkResult result = vn_call_vkSetEvent(dev->instance, device, event);
1340 vn_ResetEvent(VkDevice device, VkEvent event)
1343 struct vn_device *dev = vn_device_from_handle(device);
1348 vn_async_vkResetEvent(dev->instance, device, event);
1350 VkResult result = vn_call_vkResetEvent(dev->instance, device, event);