Debian Codegraph @

src/asahi/vulkan/hk_buffer_view.h

raw
1 /*
2 * Copyright 2024 Valve Corporation
3 * Copyright 2024 Alyssa Rosenzweig
4 * Copyright 2022-2023 Collabora Ltd. and Red Hat Inc.
5 * SPDX-License-Identifier: MIT
6 */
7 #pragma once
8
9 #include "agx_pack.h"
10 #include "hk_private.h"
11
12 #include "vk_buffer_view.h"
13
14 struct hk_physical_device;
15
16 VkFormatFeatureFlags2
17 hk_get_buffer_format_features(struct hk_physical_device *pdevice,
18 VkFormat format);
19
20 struct hk_buffer_view {
21 struct vk_buffer_view vk;
22 struct agx_texture_packed tex;
23 struct agx_pbe_packed pbe;
24 };
25
26 VK_DEFINE_NONDISP_HANDLE_CASTS(hk_buffer_view, vk.base, VkBufferView,
27 VK_OBJECT_TYPE_BUFFER_VIEW)