Port from master to RB-2.1 - Add support for OpenGL ES as a shading language (#1497)#1504
Merged
Merged
Conversation
* Add support for OpenGL ES as a shading language This commit adds two new entries to `GpuLanguage`, `GPU_LANGUAGE_GLSL_ES_1_0` and `GPU_LANGUAGE_GLSL_ES_3_0`. The only meaningful differences w.r.t. stock OpenGL are: - the 1D texture optimization isn't applied to ES, as they are not supported at all; - the texture<N>D() calls are replaced in GLSL ES 3 by a call to texture(). Fixes #1486 Signed-off-by: L. E. Segovia <13498015+amyspark@users.noreply.github.com> * GLSL ES: remove ABI break Signed-off-by: L. E. Segovia <13498015+amyspark@users.noreply.github.com> * OpenGLBuilder: use switch to check GLSL version Signed-off-by: L. E. Segovia <13498015+amyspark@users.noreply.github.com> Signed-off-by: Patrick Hodoul <Patrick.Hodoul@autodesk.com>
4545c86 to
463bdf1
Compare
remia
approved these changes
Sep 27, 2021
michdolan
approved these changes
Oct 4, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds two new entries to
GpuLanguage,GPU_LANGUAGE_GLSL_ES_1_0andGPU_LANGUAGE_GLSL_ES_3_0.The only meaningful differences w.r.t. stock OpenGL are:
the 1D texture optimization isn't applied to ES, as they are not
supported at all;
the textureD() calls are replaced in GLSL ES 3 by a call to
texture().
Fixes #1486
Signed-off-by: L. E. Segovia 13498015+amyspark@users.noreply.github.com
Signed-off-by: L. E. Segovia 13498015+amyspark@users.noreply.github.com
Signed-off-by: L. E. Segovia 13498015+amyspark@users.noreply.github.com