RetroArch
slang_preprocess.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2010-2017 - Hans-Kristian Arntzen
3  *
4  * RetroArch is free software: you can redistribute it and/or modify it under the terms
5  * of the GNU General Public License as published by the Free Software Found-
6  * ation, either version 3 of the License, or (at your option) any later version.
7  *
8  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10  * PURPOSE. See the GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License along with RetroArch.
13  * If not, see <http://www.gnu.org/licenses/>.
14  */
15 
16 #ifndef SLANG_PREPROCESS_H
17 #define SLANG_PREPROCESS_H
18 
19 #include <boolean.h>
20 #include <retro_common_api.h>
21 #include "../video_driver.h"
22 
24 
25 /* Utility function to implement the same parameter reflection
26  * which happens in the slang backend.
27  * This does preprocess over the input file to handle #includes and so on. */
28 bool slang_preprocess_parse_parameters(const char *shader_path,
29  struct video_shader *shader);
30 
32 
33 #ifdef __cplusplus
34 
35 #include "glslang_util.h"
36 
37 bool slang_preprocess_parse_parameters(glslang_meta& meta,
38  struct video_shader *shader);
39 #endif
40 
41 #endif
42 
GLuint shader
Definition: glext.h:6670
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
Definition: video_shader_parse.h:143
RETRO_BEGIN_DECLS bool slang_preprocess_parse_parameters(const char *shader_path, struct video_shader *shader)
Definition: slang_preprocess.cpp:86
#define RETRO_END_DECLS
Definition: retro_common_api.h:42