Move DEFAULT_SHADER_TYPE from driver.h to gfx/shader_common.h
This commit is contained in:
parent
da5ca89d69
commit
6a8ccc3844
12
driver.h
12
driver.h
|
@ -145,18 +145,6 @@ struct platform_bind
|
||||||
char desc[64];
|
char desc[64];
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(_XBOX360)
|
|
||||||
#define DEFAULT_SHADER_TYPE RARCH_SHADER_HLSL
|
|
||||||
#elif defined(__PSL1GHT__)
|
|
||||||
#define DEFAULT_SHADER_TYPE RARCH_SHADER_GLSL
|
|
||||||
#elif defined(__CELLOS_LV2__)
|
|
||||||
#define DEFAULT_SHADER_TYPE RARCH_SHADER_CG
|
|
||||||
#elif defined(HAVE_OPENGLES2)
|
|
||||||
#define DEFAULT_SHADER_TYPE RARCH_SHADER_GLSL
|
|
||||||
#else
|
|
||||||
#define DEFAULT_SHADER_TYPE RARCH_SHADER_NONE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct video_info
|
typedef struct video_info
|
||||||
{
|
{
|
||||||
unsigned width;
|
unsigned width;
|
||||||
|
|
|
@ -29,6 +29,18 @@
|
||||||
#include "gfx_context.h"
|
#include "gfx_context.h"
|
||||||
#include "math/matrix.h"
|
#include "math/matrix.h"
|
||||||
|
|
||||||
|
#if defined(_XBOX360)
|
||||||
|
#define DEFAULT_SHADER_TYPE RARCH_SHADER_HLSL
|
||||||
|
#elif defined(__PSL1GHT__)
|
||||||
|
#define DEFAULT_SHADER_TYPE RARCH_SHADER_GLSL
|
||||||
|
#elif defined(__CELLOS_LV2__)
|
||||||
|
#define DEFAULT_SHADER_TYPE RARCH_SHADER_CG
|
||||||
|
#elif defined(HAVE_OPENGLES2)
|
||||||
|
#define DEFAULT_SHADER_TYPE RARCH_SHADER_GLSL
|
||||||
|
#else
|
||||||
|
#define DEFAULT_SHADER_TYPE RARCH_SHADER_NONE
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL)
|
#if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL)
|
||||||
#ifndef HAVE_SHADER_MANAGER
|
#ifndef HAVE_SHADER_MANAGER
|
||||||
#define HAVE_SHADER_MANAGER
|
#define HAVE_SHADER_MANAGER
|
||||||
|
|
Loading…
Reference in New Issue