summaryrefslogtreecommitdiff
path: root/src/mbgl/shader/shader.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Move shader and uniform to gl directoryJohn Firebaugh2016-10-051-114/+0
|
* [core] remove dependence on gl.h typesKonstantin Käfer2016-09-291-0/+4
|
* [core] introduces types for GL objectsKonstantin Käfer2016-09-291-2/+2
|
* [core] merge gl::ObjectStore into gl::ContextKonstantin Käfer2016-09-271-6/+10
|
* CJK overflow - update to match gl-shader (#5908)Amy Lee Walton2016-08-111-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update vertex array ushorts * update atlas size * testing latest cjk test-suite branch * update shader ref * update shaders * update icon buffer * shaders * updated tests * buffer fix * updated make tests * annotation expected updates * final push * final fonts * a_data1 removal * remove cjk-mixed test * hiring threshold for cjk-chinese * update to new test suite * Rename a_data2 to a_data in sdf and icon shaders * update test-suite sha
* [core] move shaders to anon struct and alias themKonstantin Käfer2016-07-071-2/+2
|
* [core] Update RasterShaderBruno de Oliveira Abinader2016-07-021-0/+1
| | | | Ref: https://github.com/mapbox/mapbox-gl-shaders/issues/1
* [core] Fix overdraw mode on LinuxBruno de Oliveira Abinader2016-07-011-31/+20
| | | | | | | | | | - Use glBindAttribLocation for GLSL attributes. - Create a separate shader for each shader that supports overdraw. Needed because each uniform location must be known for every program. - Create a separate VAO for each shader inside buckets. Needed because we can only bind a VAO to a specific shader. Fixes #5435.
* [core] Refactor wireframe to match JS overdraw modeBruno de Oliveira Abinader2016-06-201-19/+42
|
* [core] Autogenerate Shader nameBruno de Oliveira Abinader2016-06-201-5/+5
|
* [core] Use unique_resource for GL objectsBruno de Oliveira Abinader2016-06-011-20/+20
| | | | | | | | | Source: https://github.com/okdshin/unique_resource These replace the complexity of manually handling moveable-RAII objects with a type specific for that purpose. As suggested in https://github.com/mapbox/mapbox-gl-native/pull/5141#issuecomment-221719872.
* [core] s/GLObjectStore/ObjectStore/Bruno de Oliveira Abinader2016-06-011-4/+4
|
* [core] s/operator bool/created()/ in {GL,TexturePool}HolderBruno de Oliveira Abinader2016-05-261-1/+1
| | | | Prevents confusing usage of GL holder objects.
* [core] Thread GLObjectStore through to Holder objectsJohn Firebaugh2016-02-181-4/+4
| | | | | | This eliminates the reliance on ThreadContext to provide GLObjectStore, and statically enforces that GL cleanup functions happen only when GLObjectStore::performCleanup is called. With the elimination of the Map thread, this becomes important because there may be multiple GLObjectStore's per-thread, and Map will need to ensure that the correct context is active when calling GLObjectStore::performCleanup.
* [gl] Added mbgl::gl::ShaderHolderBruno de Oliveira Abinader2016-02-181-38/+20
|
* [gl] Added mbgl::gl::ProgramHolderBruno de Oliveira Abinader2016-02-181-20/+14
|
* [core] move platform/gl.hpp to gl/gl.hppKonstantin Käfer2016-02-081-1/+1
|
* [shader] Shaders vertex and fragments are now GLchar*Bruno de Oliveira Abinader2015-09-151-8/+8
|
* don't delete the shaders before the programKonstantin Käfer2015-09-141-8/+6
| | | | some GPU drivers have issues with deleting shader objects that are attached to programs. while this is allowed by the spec, it seems that some drivers are crashing nonetheless.
* don't validate the programKonstantin Käfer2015-09-141-25/+0
| | | | it's not in a state where validation always succeeds with all drivers, e.g. because textures might not be attached yet
* [shader] Moved 'a_pos' GL attribute to ShaderBruno de Oliveira Abinader2015-09-141-0/+2
| | | | Avoids duplicated code in all derived classes.
* Replace mbgl::util::make_unique<> with std::make_unique<>Konstantin Käfer2015-05-261-3/+3
|
* use a reinterpret_cast to return the correct typeKonstantin Käfer2015-03-061-1/+1
|
* throw exception when shader compilation failsKonstantin Käfer2015-03-061-9/+7
|
* Remove program binary cachingLeith Bade2015-01-271-129/+37
|
* Update to Android NDK r10d in new AMILeith Bade2015-01-151-2/+2
|
* Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-masonLeith Bade2015-01-151-32/+39
|\ | | | | | | | | Conflicts: src/mbgl/shader/shader.cpp
| * Check for IO errors when loading binary shader. Fixes #740Leith Bade2015-01-141-21/+57
| |
* | remove extra lineLeith Bade2015-01-131-1/+0
| |
* | Add failsafe to program binary loadingLeith Bade2015-01-051-10/+43
| |
* | Tidy up a few missed things in shader.cppLeith Bade2014-12-241-3/+2
|/
* Use iostream for saving GL program binary. Also check for ↵Leith Bade2014-12-201-42/+29
| | | | GL_NUM_PROGRAM_BINARY_FORMATS > 0.
* update error reporting functionKonstantin Käfer2014-12-101-39/+39
|
* Use CHECK_ERROR on every GL callLeith Bade2014-12-101-39/+39
|
* Load program binary extension on LinuxLeith Bade2014-12-061-46/+126
|
* make most headers privateKonstantin Käfer2014-12-041-0/+133