mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
14 lines
442 B
C
14 lines
442 B
C
#ifndef _SHADERS_COMMON
|
|
#define _SHADERS_COMMON
|
|
|
|
#if defined(HAVE_OPENGLES)
|
|
#define GLSL(src) "precision mediump float;\n" #src
|
|
#define GLSL_330_ES(src) "#version 330 es\nprecision mediump float;\n" #src
|
|
#define GLSL_330_CORE(src) "#version 330 es\nprecision mediump float;\n" #src
|
|
#else
|
|
#define GLSL(src) "" #src
|
|
#define GLSL_330_ES(src) "#version 330 core\n" #src
|
|
#define GLSL_330_CORE(src) "#version 330 core\n" #src
|
|
#endif
|
|
|
|
#endif |