Blender V5.0
vk_fence.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#include "vk_fence.hh"
10#include "vk_backend.hh"
11#include "vk_common.hh"
12#include "vk_context.hh"
13
14namespace blender::gpu {
15
17{
18 VKContext &context = *VKContext::get();
19 timeline_value_ = context.flush_render_graph(RenderGraphFlushFlags::SUBMIT |
21}
22
24{
25 VKDevice &device = VKBackend::get().device;
26 device.wait_for_timeline(timeline_value_);
27 timeline_value_ = 0;
28}
29
30} // namespace blender::gpu
static VKBackend & get()
Definition vk_backend.hh:91
static VKContext * get()
void wait_for_timeline(TimelineValue timeline)
void signal() override
Definition vk_fence.cc:16
void wait() override
Definition vk_fence.cc:23