Debian Codegraph @

src/asahi/vulkan/hk_sampler.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
8 #pragma once
9
10 #include "hk_device.h"
11 #include "hk_physical_device.h"
12 #include "hk_private.h"
13
14 #include "vk_sampler.h"
15 #include "vk_ycbcr_conversion.h"
16
17 #include "vk_format.h"
18
19 struct hk_sampler {
20 struct vk_sampler vk;
21 VkClearColorValue custom_border;
22 bool has_border;
23
24 uint8_t plane_count;
25 uint16_t lod_bias_fp16;
26
27 struct {
28 struct hk_rc_sampler *hw;
29 } planes[2];
30 };
31
32 VK_DEFINE_NONDISP_HANDLE_CASTS(hk_sampler, vk.base, VkSampler,
33 VK_OBJECT_TYPE_SAMPLER)