xref: /aosp_15_r20/external/mesa3d/src/asahi/vulkan/hk_buffer_view.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
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 "hk_private.h"
10 
11 #include "vk_buffer_view.h"
12 
13 struct hk_physical_device;
14 
15 VkFormatFeatureFlags2
16 hk_get_buffer_format_features(struct hk_physical_device *pdevice,
17                               VkFormat format);
18 
19 struct hk_buffer_view {
20    struct vk_buffer_view vk;
21 
22    /** Index in the image descriptor table */
23    uint32_t tex_desc_index, pbe_desc_index;
24 };
25 
26 VK_DEFINE_NONDISP_HANDLE_CASTS(hk_buffer_view, vk.base, VkBufferView,
27                                VK_OBJECT_TYPE_BUFFER_VIEW)
28