48 Commits

Author SHA1 Message Date
Max Ammann
c12f3f1127
Improve error handling (#222)
* Introduce proper error types for a lot of functions, remove main catch-all type

* Fix compilation and clippy issues

* Map, unmap and drop always

* Remove not required parentheses

* Fix running on non-vulkan platforms

* Add and use thiserror crate
2022-12-12 20:06:12 +01:00
Max Ammann
5b084f033e
Make writing rendered images to disk optional, and disable for bench (#214) 2022-12-11 21:50:27 +01:00
Max Ammann
fec6a408ee
Update Rust for CI and IDEs (#207)
* Upgrade toolchain to 1.65

* Set minimum Rust version

* Cargo workspaces

* Set version manually

* Set a specific rust version so we an upgrade is triggered

* Use debug for wgpu-info for speedier compile

* Install specific rev of wgpu-info

* Fix windows build
2022-11-12 13:21:29 +01:00
Max Ammann
1444ae7782
Clippy fixes (#197)
* Apply clippy fixes

* Use nightly for android

* Use nightly for web

* Fix feature usage

* Deny unused imports

* Add ios and web fixup

* Exit with non-zero exit code

* Add no_pendantic_os_check cfg flag
2022-11-05 13:29:11 +01:00
Maximilian Ammann
fdd09e0b19 Add the possibility to late initialize the renderer 2022-11-02 20:44:35 +01:00
Maximilian Ammann
8af27b29cf Fix web compilation issues 2022-10-30 22:10:08 +01:00
Maximilian Ammann
7278829910 Move files within maplibre-winit directory 2022-10-30 18:32:41 +01:00
Maximilian Ammann
dc3d6576bc Fix formatting 2022-10-30 18:27:26 +01:00
Maximilian Ammann
b863cef589 Fix headless rendering 2022-09-25 19:12:20 +02:00
Maximilian Ammann
c663416d05 Fix compilation in winit and demo module 2022-09-25 17:41:59 +02:00
Maximilian Ammann
8c7a1f32d0 Fix compilation 2022-09-24 16:58:53 +02:00
Maximilian Ammann
3e1c24e533 Fix formatting 2022-09-17 15:48:41 +02:00
Maximilian Ammann
12bb06a86e Add a lot of TODO notes 2022-09-17 14:46:35 +02:00
Maximilian Ammann
76bf7a6ecf Run formatter 2022-09-17 13:50:08 +02:00
Maximilian Ammann
3f1e165cda Fix tracy dependency versions 2022-09-17 13:48:35 +02:00
Maximilian Ammann
c7f7408a10 Fix multithreading in web 2022-09-15 18:21:01 +02:00
Maximilian Ammann
fb250e0d28 Remove a Box<> 2022-09-15 16:25:18 +02:00
Maximilian Ammann
7dc7346597 Add first working version which does not need shared memory on web 2022-09-15 09:46:17 +02:00
Maximilian Ammann
f012d23b7e Remove ScheduleMethod and replace with Scheduler 2022-09-09 12:46:16 +02:00
Maximilian Ammann
056cb5c995 Introduce environment 2022-09-09 12:34:06 +02:00
Max Ammann
1934555013
Add CLI to demo (#160)
* Introduce a CLI

* Fix headless rendering
2022-09-08 11:12:22 +02:00
Max Ammann
6aa0557c90
Configure rustfmt (#145)
* Configure rustfmt

* Apply new formatting rules
2022-07-17 16:14:29 +02:00
Max Ammann
d1b6360360
Improve headless rendering (#143)
* Remove util module in renderer

* Implement default for ZoomLevel

* Add function to clear the bufferpool

* Calculate camera height dynamically

* Deduplicate code and add sample tile-grid

* Remove unused function
2022-07-17 16:08:38 +02:00
Birk Skyum
99a74d35df
Update deps with cargo upgrade (#152)
* Update deps with cargo upgrade

* Keep tracy versions aligned
2022-07-08 18:20:47 +02:00
Max Ammann
b202dc8dd4
Enable bechmarks (#129)
* Fix benchmarks

* Add test data

* Update drivers

* No vulkan-sdk
2022-06-04 10:55:09 +02:00
Max Ammann
1c46a77ce0
Improve headless feature structure (#128)
* Collect headless related stuff under feature flag

* Run clippy
2022-06-04 10:53:54 +02:00
Maximilian Ammann
9c5dc1965b Add some comments and rename 2022-06-01 17:15:24 +02:00
Maximilian Ammann
6a4f240ebb Merge branch 'main' into data-pipeline 2022-06-01 14:07:48 +02:00
Maximilian Ammann
200e16f345 Cleanup dependencies and simplify bounds 2022-06-01 13:59:12 +02:00
Maximilian Ammann
cfba8189c3 Fix resize detection 2022-06-01 12:30:09 +02:00
Maximilian Ammann
774708a787 Remove dynamic dispatch for schedule 2022-05-31 21:45:44 +02:00
Maximilian Ammann
b80aa42fdb Simplify pipeline API 2022-05-31 21:15:55 +02:00
Maximilian Ammann
deb442287e Refactor thread state and pipeline 2022-05-31 21:15:55 +02:00
Maximilian Ammann
c40f39a72c Refactor thread state and pipeline 2022-05-31 21:15:55 +02:00
Maximilian Ammann
ad6a0be20d Start working on a specific headless API 2022-05-31 21:15:55 +02:00
Maximilian Ammann
94b8f27bf8 Use pipeline in headless rendering 2022-05-31 21:15:55 +02:00
Maximilian Ammann
40db69c864 Fix tests 2022-05-31 21:15:52 +02:00
Maximilian Ammann
810954f49d Rename runnable to eventloop and fix variable names 2022-05-31 21:14:46 +02:00
Maximilian Ammann
ae36e4f7d4 Rename HttpClient 2022-05-31 21:14:46 +02:00
Maximilian Ammann
03f38c2725 Simplify and fix headless rendering 2022-05-31 21:14:46 +02:00
Maximilian Ammann
355977e3b7 Simplify window traits 2022-05-31 21:14:46 +02:00
Maximilian Ammann
1e63718dfc Implement headless rendering 2022-05-31 21:14:46 +02:00
Max Ammann
916af61abc
Add Render Graph from Bevy (#93)
* Add render graph from bevy with graph runner

* Add surface

* Continue to refactor renderer

* Make ScheduleMethod object safe in order to be able to have a dyn object in MapContext

* Cleanup, add some more documentation and simplify

Support resizing

Fix late init

* Update apple docs

* Give bevy attribution

* Pass github token

* Improve some comments
2022-05-23 16:53:51 +02:00
Max Ammann
feff3201c9
Move winit code to maplibre-winit (#86)
* Extract winit code to maplibre-winit

* Run clippy

* Fix android and apple

* Remove import

* Fix android compilation

* Fix android

* Update dependencies

* Fix android

* Fix android

* Add map window config

* Fix feature flag

* Add title to config

* Remove unused export

* Fix for android
2022-05-10 08:58:45 +02:00
Max Ammann
bac7ffb8c1
Move platform specific code to web (#63)
* Add a view state for input processing

* Move platform specific web code to web crate

* Run clippy

* Fix apple and android

* Move error function

* Do not enable all features

* Remove header from .h file

* Refactor to use where clauses
2022-05-02 20:29:05 +02:00
Max Ammann
a10ab2f888
Prepare for publishing on crates.io (#46)
* Update geozero

* Make maplibre- packages ready for publishing
2022-05-01 17:15:48 +00:00
Maximilian Ammann
08a3983390 Fix version declarations 2022-04-23 18:35:20 +02:00
Maximilian Ammann
24bd16c112 Remove some crates and rename others 2022-04-22 21:13:58 +02:00