Blender V4.3
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
19#pragma once
20
21#include "BLI_utility_mixins.hh"
22
23#include "vk_common.hh"
25
27class VKResourceStateTracker;
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 */
42
44 VkImageLayout to_vk_image_layout() const;
45};
46
49 VkBuffer vk_buffer;
50 VkAccessFlags vk_access_flags;
51};
52
68
69} // namespace blender::gpu::render_graph
unsigned int uint32_t
Definition stdint.h:80
void build_links(VKResourceStateTracker &resources, VKRenderGraphNodeLinks &node_links) const