some
This commit is contained in:
1 parent
aca30bfe6a
commit
01594353d8
11 files changed
+265
-330
No files matched your search
@@ -0,0 +1,29 @@
|
||||
#ifndef OGS_CHKGFX_RENDER_SHADERS_H
|
||||
#define OGS_CHKGFX_RENDER_SHADERS_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// Placeholder that starts every shader template in renderShaders.c.
|
||||
#define RENDER_SHADER_VERSION_TOKEN "%VERSION%"
|
||||
|
||||
// Version directives substituted for the placeholder. A shader's #version
|
||||
// must precede everything else (including "precision"), so it cannot be
|
||||
// chosen with an #ifdef inside the GLSL source; callers do the substitution.
|
||||
extern const char *const RENDER_SHADER_VERSION_GL;
|
||||
extern const char *const RENDER_SHADER_VERSION_ES;
|
||||
|
||||
// Shader templates shared by the macOS and iOS builds. Replace
|
||||
// RENDER_SHADER_VERSION_TOKEN with the platform version directive before
|
||||
// handing them to raybri_init().
|
||||
extern const char *const RENDER_SHADER_MAIN_FS_T;
|
||||
extern const char *const RENDER_SHADER_MAIN_VS_T;
|
||||
extern const char *const RENDER_SHADER_SHADOW_FS_T;
|
||||
extern const char *const RENDER_SHADER_SHADOW_VS_T;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user