About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/src/frygon/compiler/fgcc.h
diff options
context:
space:
mode:
authorLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2025-11-24 19:39:30 -0500
committerLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2025-11-24 19:39:30 -0500
commitb5f3587df4048d2ba807721ff2faea8c8a43a93f (patch)
tree6913f730a41822b98fecd5e82b7cae46164fd9c0 /src/frygon/compiler/fgcc.h
parent41c700fdbf1d79dfb571105ee93bfa46da6c8428 (diff)
Diffstat (limited to 'src/frygon/compiler/fgcc.h')
-rw-r--r--src/frygon/compiler/fgcc.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/frygon/compiler/fgcc.h b/src/frygon/compiler/fgcc.h
new file mode 100644
index 00000000000..a611818d19e
--- /dev/null
+++ b/src/frygon/compiler/fgcc.h
@@ -0,0 +1,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 */