Commit Graph

348 Commits

Author SHA1 Message Date
Alex Cristici
7387bb8c02 Vertex attribute by index instead of map (#2116)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-02-16 18:29:53 +00:00
Stefan Karschti
d6db72e8ba Custom Drawable Layer: Symbol Icon (#1908) 2024-02-16 17:39:47 +02:00
Alex Cristici
612b256821 Texture by index instead of map (#2107)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-02-15 21:28:20 +02:00
Stefan Karschti
1d00e5b9ea MLNCustomStyleLayer + Metal example (#2041) 2024-02-15 18:43:40 +02:00
Tim Sylvester
8e5fc4c198 Minor optimizations (#2091) 2024-02-13 07:40:25 -08:00
Tim Sylvester
f9c6c9c2be Use optional values in place of zero placeholders (#2089) 2024-02-06 07:13:13 -08:00
Tim Sylvester
14bfb5df72 Retain property update flags (#2083) 2024-02-01 14:23:26 -08:00
Tim Sylvester
867e7cc813 Use enableDepth option (#2073) 2024-01-31 14:48:41 -08:00
Alex Cristici
61a6b66435 UBO by index instead of map (#1980)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-31 22:02:05 +02:00
Tim Sylvester
bf15332c5e Combine multiple segments into a drawable when sortFeaturesByKey is not used (#2060) 2024-01-30 08:02:05 -08:00
Nuno Goncalves
1d5a58bb52 remove unused member variable (#2066)
Signed-off-by: Nuno Gonçalves <nunojpg@gmail.com>
2024-01-28 21:04:46 +07:00
Tim Sylvester
d7f2431524 Don't save an extra copy of properties-as-uniforms set with symbol da… (#2054) 2024-01-25 14:44:40 -08:00
Tim Sylvester
8ce238c857 Eliminate an extra vector allocation for many attributes (#2049) 2024-01-25 10:58:23 -08:00
Tim Sylvester
e7d6f6a84d Line tweaker (#2050) 2024-01-25 10:57:53 -08:00
Tim Sylvester
5c304614d6 Avoid redundant bindings/states based on Metal profiler feedback. (#2006) 2024-01-22 07:02:36 -08:00
mwilsnd
d6c2b148dd Metal layer depth range support (#2013)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Cristici <alex.cristici@gmail.com>
2024-01-16 09:31:44 -05:00
Alex Cristici
d332088b98 UBO fixes (#2008)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-11 18:11:44 +02:00
Tim Sylvester
a479c84b9b Stencil clear (#1994) 2024-01-05 11:56:16 -08:00
Nathan Gass
fe728ebdd8 add methods getTiles and setTiles to mimick maplibre-gl-js interface (#149) 2024-01-05 16:29:26 +00:00
mwilsnd
8b2c748341 OpenGL: Monotonic UBO allocator (#1911)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bart Louwers <bart@emeel.net>
2023-12-12 12:39:34 -05:00
Alex Cristici
9fbcb031f0 Line layer UBO improvements (#1946)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-12 19:32:20 +02:00
Tim Sylvester
de1bcd1665 Add explicit frame capture (#1934) 2023-12-09 06:22:43 +00:00
Alex Cristici
ea73a57a09 Device pixel ratio send as define instead of UBO field (#1936)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-09 07:48:57 +02:00
Tim Sylvester
18e6802973 Metal permutations 2 (#1923) 2023-12-07 08:21:24 -08:00
Tim Sylvester
f7666f4ad0 Use 64-bit hashes regardless of platform (#1918) 2023-12-05 13:35:20 -08:00
Bart Louwers
a92bc67f99 Fix order_independent_hash on 32-bit platforms (#1914) 2023-12-05 15:42:48 +02:00
Tim Sylvester
d46a7c745d Metal permutations (#1903) 2023-12-05 01:15:35 +01:00
Tim Sylvester
fa9712cd8f Shared attributes (#1898) 2023-11-29 02:57:51 +00:00
Alex Cristici
db2e95a59b Symbol improve UBO (#1893) 2023-11-28 08:16:11 +02:00
Stefan Karschti
178454bdba Metal debug lines (#1888) 2023-11-28 07:51:18 +02:00
mwilsnd
634ce8089b Symbol Tweaker: Redundant update inside inner loop (#1891) 2023-11-27 20:14:42 +00:00
mwilsnd
04d5695a0a Add ankerl::unordered_dense containers (#1881)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-27 14:06:01 -05:00
mwilsnd
71d4ceabcd Don't use std::function in the renderer hot paths (#1883)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-27 10:36:03 -05:00
Stefan Karschti
893c97f20e Triangulated fill outlines (Metal) (#1880) 2023-11-24 14:19:41 +02:00
mwilsnd
09e16d78d8 Fill: Don't query UBOs to determine shader variant (#1885)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-22 19:03:37 +00:00
mwilsnd
287f202525 Mark layer renderability inline, don't copy render items (#1882)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-22 12:26:19 -05:00
mwilsnd
5dbe89dea1 Hoist symbol dynamic UBO out of drawable loop (#1884)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-22 11:35:58 -05:00
Tim Sylvester
ffcf132f20 Replace rather than update Metal buffers (#1842) 2023-11-20 21:58:19 +01:00
Tim Sylvester
9c9d0dd5bd Consistently use no-throw new in noexcept layer create methods (#1875) 2023-11-18 00:30:25 +00:00
Tim Sylvester
4150c8b851 Handle the case where styles update without a bucket change, fixing `… (#1874) 2023-11-17 09:44:00 -08:00
Tim Sylvester
3df14ab59d Bug/stencil tiles (#1871) 2023-11-16 09:33:29 -08:00
Alex Cristici
127506c135 Metal debug shader (#1870) 2023-11-15 23:37:59 +02:00
Alex Cristici
08f24a68c8 Fixed metal line render tests (#1868)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-15 17:36:35 +02:00
Alex Cristici
15cfb3570c Fixed metal vertex attribute update render tests (#1867)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-15 17:36:21 +02:00
Stefan Karschti
1200046f0c Collision drawables shared buffers (#1859) 2023-11-15 17:33:41 +02:00
Alex Cristici
c68d8f2d37 Fixed metal fill color per vertex (#1865) 2023-11-15 09:06:10 +02:00
Alex Cristici
f24055a9f0 Fixed metal background render tests (#1864)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-15 08:14:54 +02:00
Tim Sylvester
37a9c089a2 Separate properties-as-uniforms per drawable (#1856) 2023-11-14 15:43:56 -08:00
Alex Cristici
9884b1e40f Fixed metal heatmap render tests (#1860) 2023-11-14 22:17:42 +02:00
Alex Cristici
028bec0f69 Fixed metal circle render tests (#1854)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-10 00:10:47 +02:00