diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2022-10-16 19:31:21 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2022-10-16 19:31:21 +0100 |
commit | a59203b2ebc4f8671d04b743f0c9eb4f40170f3e (patch) | |
tree | 82a5658d110f0c16770ded2cf20f78484b31bf27 /glprog.c | |
parent | 926998d3d8c671c55e6a7fe6c6fa88f6512ccb46 (diff) | |
download | faqe-master.tar.gz faqe-master.tar.xz faqe-master.zip |
Diffstat (limited to 'glprog.c')
-rw-r--r-- | glprog.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* - * Copyright (C) 2018 Tomasz Kramkowski <tk@the-tk.com> + * Copyright (C) 2018, 2022 Tomasz Kramkowski <tk@the-tk.com> * SPDX-License-Identifier: MIT */ #include <assert.h> @@ -28,6 +28,10 @@ static const struct { { GL_VERTEX_SHADER, "vert", true, #define SH_IN(type, name) "in " #type " " #name ";\n" #include "shaders/data.h" + "out iface {\n" +#define SH_IF(type, name) "\t" #type " " #name ";\n" +#include "shaders/data.h" + "} o;\n" }, { GL_TESS_CONTROL_SHADER, "tesc", false, "" }, { GL_TESS_EVALUATION_SHADER, "tese", false, "" }, @@ -36,6 +40,10 @@ static const struct { #define SH_TEX(type, name) "uniform sampler" #type " t" #name ";\n" #define SH_OUT(type, name) "out " #type " " #name ";\n" #include "shaders/data.h" + "in iface {\n" +#define SH_IF(type, name) "\t" #type " " #name ";\n" +#include "shaders/data.h" + "} i;\n" }, }; |