About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/src/frygon/compiler/fgcc.h
blob: a611818d19edc7455a5078c8fafc8ef8ffe59b67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * Copyright © 2025 Lucas Francisco Fryzek
 * SPDX-License-Identifier: MIT
 */
#ifndef FGCC_H
#define FGCC_H 1

#include "compiler/shader_enums.h"
#include "nir_defines.h"

#include <assert.h>
#include <stdbool.h>
#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

struct fgcc_compiler;
struct fg_device_info;

struct fgcc_compiler *fgcc_compiler_create(const struct fg_device_info *dev);

const struct nir_shader_compiler_options *
fgcc_nir_options(const struct fgcc_compiler *fgcc);

void fgcc_preprocess_nir(nir_shader *nir, const struct fgcc_compiler *fgcc);

#ifdef __cplusplus
}
#endif

#endif /* FGCC_H */