RetroArch
shaders_common.h
Go to the documentation of this file.
1 #ifndef _SHADERS_COMMON
2 #define _SHADERS_COMMON
3 
4 #if defined(HAVE_OPENGLES)
5 #define CG(src) "" #src
6 #define GLSL(src) "precision mediump float;\n" #src
7 #define GLSL_330(src) "#version 330 es\nprecision mediump float;\n" #src
8 #else
9 #define CG(src) "" #src
10 #define GLSL(src) "" #src
11 #define GLSL_300(src) "#version 300 es\n" #src
12 #define GLSL_330(src) "#version 330 core\n" #src
13 #endif
14 
15 #endif