This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
Support "#pragma mapbox:" commands in the shaders - #5174
Merged
Merged
Conversation
This was referenced May 31, 2016
Contributor
|
@brunoabinader Want to grab this? |
Contributor
|
@jfirebaugh sure 👍 |
brunoabinader
added a commit
to mapbox/mapbox-gl-shaders
that referenced
this pull request
Jun 2, 2016
brunoabinader
force-pushed
the
brunoabinader-uniform-pragmas
branch
from
June 2, 2016 12:44
0677718 to
af65da1
Compare
Contributor
|
Shader PR: mapbox/mapbox-gl-shaders#6 |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
GL JS has introduced some simple
#pragmastatements in the shaders in order to reduce data-driven styling boilerplate.Supporting these
#pragmastatements in GL Native will reduce the need for#ifdefstatements in the shaders and lay some foundation for data-driven styling in GL Native.#pragma mapbox: define foo lowpstatements: define a uniform variableu_foowith the specified precision#pragma mapbox: initialize foo lowpstatements: alias the uniform variable fromu_footofooref mapbox/mapbox-gl-js#2585
cc @jfirebaugh @1ec5 @mourner