Blender V5.0
vk_resource_access_info.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
18
19#pragma once
20
21#include "BLI_utility_mixins.hh"
22
23#include "vk_common.hh"
25
28
31 VkImage vk_image;
32 VkAccessFlags vk_access_flags;
33 VkImageAspectFlags vk_image_aspect;
34 /* Used for sub-resource tracking within a rendering scope.
35 *
36 * By default all layers of images are tracked as a single resource. Only inside a render scope
37 * we can temporary change a subset of layers, when the image is used as an attachment and a
38 * image load/store.
39 */
41
43 VkImageLayout to_vk_image_layout(bool supports_local_read) const;
44};
45
48 VkBuffer vk_buffer;
49 VkAccessFlags vk_access_flags;
50};
51
67
68} // namespace blender::gpu::render_graph
NonCopyable(const NonCopyable &other)=delete
VkImageLayout to_vk_image_layout(bool supports_local_read) const
void build_links(VKResourceStateTracker &resources, VKRenderGraphNodeLinks &node_links) const