Debian Codegraph @

src/kosmickrisp/vulkan/kk_sampler.h

raw symbols SCIP
1 /*
2 * Copyright © 2022 Collabora Ltd. and Red Hat Inc.
3 * Copyright 2025 LunarG, Inc.
4 * Copyright 2025 Google LLC
5 * SPDX-License-Identifier: MIT
6 */
7
8 #ifndef KK_SAMPLER_H
9 #define KK_SAMPLER_H 1
10
11 #include "kk_device.h"
12 #include "kk_physical_device.h"
13 #include "kk_private.h"
14
15 #include "kosmickrisp/bridge/mtl_types.h"
16
17 #include "vk_sampler.h"
18 #include "vk_ycbcr_conversion.h"
19
20 #include "vk_format.h"
21
22 struct kk_sampler {
23 struct vk_sampler vk;
24 VkClearColorValue custom_border;
25 bool has_border;
26
27 uint8_t plane_count;
28 uint16_t lod_bias_fp16;
29 uint16_t lod_min_fp16;
30 uint16_t lod_max_fp16;
31
32 struct {
33 struct kk_rc_sampler *hw;
34 } planes[2];
35 };
36
37 VK_DEFINE_NONDISP_HANDLE_CASTS(kk_sampler, vk.base, VkSampler,
38 VK_OBJECT_TYPE_SAMPLER)
39
40 #endif /* KK_SAMPLER_H */