Lines Matching refs:device
81 vk_sync_init(struct vk_device *device,
99 return type->init(device, sync, initial_value);
103 vk_sync_finish(struct vk_device *device,
106 sync->type->finish(device, sync);
110 vk_sync_create(struct vk_device *device,
118 sync = vk_alloc(&device->alloc, type->size, 8,
121 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
123 VkResult result = vk_sync_init(device, sync, type, flags, initial_value);
125 vk_free(&device->alloc, sync);
135 vk_sync_destroy(struct vk_device *device,
138 vk_sync_finish(device, sync);
139 vk_free(&device->alloc, sync);
143 vk_sync_signal(struct vk_device *device,
154 return sync->type->signal(device, sync, value);
158 vk_sync_get_value(struct vk_device *device,
163 return sync->type->get_value(device, sync, value);
167 vk_sync_reset(struct vk_device *device,
172 return sync->type->reset(device, sync);
175 VkResult vk_sync_move(struct vk_device *device,
183 return src->type->move(device, dst, src);
214 __vk_sync_wait(struct vk_device *device,
226 return sync->type->wait(device, sync, wait_value,
234 return sync->type->wait_many(device, 1, &wait, wait_flags,
240 vk_sync_wait(struct vk_device *device,
249 __vk_sync_wait(device, sync, wait_value, wait_flags,
252 return vk_device_set_lost(device, "Maximum timeout exceeded!");
255 return __vk_sync_wait(device, sync, wait_value, wait_flags,
282 __vk_sync_wait_many(struct vk_device *device,
292 return __vk_sync_wait(device, waits[0].sync, waits[0].wait_value,
297 return waits[0].sync->type->wait_many(device, wait_count, waits,
305 VkResult result = __vk_sync_wait(device, waits[i].sync,
317 VkResult result = __vk_sync_wait(device, waits[i].sync,
328 vk_sync_wait_many(struct vk_device *device,
337 __vk_sync_wait_many(device, wait_count, waits, wait_flags,
340 return vk_device_set_lost(device, "Maximum timeout exceeded!");
343 return __vk_sync_wait_many(device, wait_count, waits, wait_flags,
349 vk_sync_import_opaque_fd(struct vk_device *device,
353 VkResult result = sync->type->import_opaque_fd(device, sync, fd);
364 vk_sync_export_opaque_fd(struct vk_device *device,
370 VkResult result = sync->type->export_opaque_fd(device, sync, fd);
380 vk_sync_import_sync_file(struct vk_device *device,
390 return sync->type->signal(device, sync, 0);
392 return sync->type->import_sync_file(device, sync, sync_file);
396 vk_sync_export_sync_file(struct vk_device *device,
401 return sync->type->export_sync_file(device, sync, sync_file);