| 1 |
/* |
| 2 |
* Copyright © 2026 Imagination Technologies Ltd. |
| 3 |
* SPDX-License-Identifier: MIT |
| 4 |
*/ |
| 5 |
#ifndef PVR_NIR_LOWER_YCBCR_H |
| 6 |
#define PVR_NIR_LOWER_YCBCR_H |
| 7 |
|
| 8 |
#include <stdbool.h> |
| 9 |
#include <stdint.h> |
| 10 |
|
| 11 |
typedef struct nir_shader nir_shader; |
| 12 |
|
| 13 |
typedef const struct vk_ycbcr_conversion_state *( |
| 14 |
*nir_pvr_ycbcr_conversion_lookup_cb)(const void *data, |
| 15 |
uint32_t set, |
| 16 |
uint32_t binding, |
| 17 |
uint32_t array_index); |
| 18 |
bool nir_pvr_lower_ycbcr_tex(nir_shader *nir, |
| 19 |
nir_pvr_ycbcr_conversion_lookup_cb cb, |
| 20 |
const void *cb_data); |
| 21 |
|
| 22 |
#endif /* PVR_NIR_LOWER_YCBCR_H */ |