Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Commit

Permalink
msvc glsl fixes (preprocessor) (#28)
Browse files Browse the repository at this point in the history
* msvc glsl fixes (preprocessor)

* fix stringification for new shaders and enable emulator for android build script
  • Loading branch information
headupinclouds authored Oct 20, 2017
1 parent c68d1cb commit 4fe42a0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
1 change: 1 addition & 0 deletions bin/build-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ARGS=(
OGLES_GPGPU_BUILD_TESTS=ON
OGLES_GPGPU_OPENGL_ES3="${OGLES_GPGPU_OPENGL_ES3}"
HUNTER_CONFIGURATION_TYPES=${CONFIG}
GAUZE_ANDROID_USE_EMULATOR=YES
)

polly.py --toolchain ${TOOLCHAIN} --verbose --config ${CONFIG} --reconfig --open --test --fwd ${ARGS[@]} --test
7 changes: 3 additions & 4 deletions ogles_gpgpu/common/proc/rgb2luv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
BEGIN_OGLES_GPGPU

// clang-format off
const char * Rgb2LuvProc::fshaderRgb2LuvSrc = OG_TO_STR
(
const char * Rgb2LuvProc::fshaderRgb2LuvSrc =
#if defined(OGLES_GPGPU_OPENGLES)
precision highp float;
OG_TO_STR(precision highp float;)
#endif

OG_TO_STR(
varying vec2 vTexCoord;
uniform sampler2D uInputTex;

Expand Down
30 changes: 15 additions & 15 deletions ogles_gpgpu/common/proc/swizzle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
BEGIN_OGLES_GPGPU

// clang-format off
const char * SwizzleProc::fshaderRGBASrc = OG_TO_STR
(
const char * SwizzleProc::fshaderRGBASrc =
#if defined(OGLES_GPGPU_OPENGLES)
precision mediump float;
OG_TO_STR(precision mediump float;)
#endif
OG_TO_STR(
varying vec2 vTexCoord;
uniform sampler2D uInputTex;
void main()
Expand All @@ -26,11 +26,11 @@ const char * SwizzleProc::fshaderRGBASrc = OG_TO_STR
// clang-format on

// clang-format off
const char * SwizzleProc::fshaderBGRASrc = OG_TO_STR
(
const char * SwizzleProc::fshaderBGRASrc =
#if defined(OGLES_GPGPU_OPENGLES)
precision mediump float;
OG_TO_STR(precision mediump float;)
#endif
OG_TO_STR(
varying vec2 vTexCoord;
uniform sampler2D uInputTex;
void main()
Expand All @@ -41,11 +41,11 @@ const char * SwizzleProc::fshaderBGRASrc = OG_TO_STR
// clang-format on

// clang-format off
const char * SwizzleProc::fshaderARGBSrc = OG_TO_STR
(
const char * SwizzleProc::fshaderARGBSrc =
#if defined(OGLES_GPGPU_OPENGLES)
precision mediump float;
OG_TO_STR(precision mediump float;)
#endif
OG_TO_STR(
varying vec2 vTexCoord;
uniform sampler2D uInputTex;
void main()
Expand All @@ -56,11 +56,11 @@ const char * SwizzleProc::fshaderARGBSrc = OG_TO_STR
// clang-format on

// clang-format off
const char * SwizzleProc::fshaderABGRSrc = OG_TO_STR
(
const char * SwizzleProc::fshaderABGRSrc =
#if defined(OGLES_GPGPU_OPENGLES)
precision mediump float;
OG_TO_STR(precision mediump float;)
#endif
OG_TO_STR(
varying vec2 vTexCoord;
uniform sampler2D uInputTex;
void main()
Expand All @@ -71,11 +71,11 @@ const char * SwizzleProc::fshaderABGRSrc = OG_TO_STR
// clang-format on

// clang-format off
const char * SwizzleProc::fshaderGRABSrc = OG_TO_STR
(
const char * SwizzleProc::fshaderGRABSrc =
#if defined(OGLES_GPGPU_OPENGLES)
precision mediump float;
OG_TO_STR(precision mediump float;)
#endif
OG_TO_STR(
varying vec2 vTexCoord;
uniform sampler2D uInputTex;
void main()
Expand Down

0 comments on commit 4fe42a0

Please sign in to comment.