| 6391 | } |
| 6392 | |
| 6393 | void RenderingDevice::sync() { |
| 6394 | ERR_RENDER_THREAD_GUARD(); |
| 6395 | ERR_FAIL_COND_MSG(is_main_instance, "Only local devices can submit and sync."); |
| 6396 | ERR_FAIL_COND_MSG(!local_device_processing, "sync can only be called after a submit"); |
| 6397 | |
| 6398 | _begin_frame(true); |
| 6399 | local_device_processing = false; |
| 6400 | } |
| 6401 | |
| 6402 | void RenderingDevice::_free_pending_resources(int p_frame) { |
| 6403 | // Free in dependency usage order, so nothing weird happens. |