121 Commits

Author SHA1 Message Date
Max Ammann
4fcd142e0d
Automatically choose texture format based on adapter (#224)
* Automatically choose texture format based on adapter

* Use compatible_surface properly
2022-12-14 10:13:05 +01:00
Max Ammann
516d642079
Define a minimum and maximum pitch (#149) 2022-12-13 17:52:02 +01:00
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
9496ef0e71
Fix regressions: Transferable flatbuffers (#221)
* Add geometry index again

* Switch to info level for run config

* Add setting for present_mode

* Remove unused file

* Adjust web to new message

* Update package-lock.json

* One of the first working versions with a large buffer

* Add features to fix builds

* Switch to flatbuffers for data passing

* Cleanup and move entries to wasm_entries

* Install protobuf and flatbuffers

* Fix windows CI

* Fix clippy errors and warnings for generated code
2022-12-11 21:11:49 +01:00
Max Ammann
1b73ad5908
Upgrade to Ubuntu 22 in CI (#215)
* Use apt-get

* Upgarde ubuntu

* Disable upgrading drivers

* Add messages to test

* Add comment
2022-11-13 11:30:59 +01:00
Max Ammann
6367d3641f
Fix regressions from structure refactoring (#203)
* Add geometry index

* Switch to info level for run config

* Add setting for present_mode

* Remove unused file

* Adjust web to new message

* Rename transferables

* Remove bytemuck and add unsafe code

* Add Result to return type of APCs

* Add Result to Processable

* Resolve unwraps

* Remove unwraps and remove unused code
2022-11-13 11:24:17 +01:00
Max Ammann
193b06a49d
Fix tracy by using re-export (#213) 2022-11-12 21:01:17 +01:00
Julien Rebetez
c77ce85741
Clippy fixes (#206)
* Clippy fixes

* Clippy: add Default implementations

* Clippy: Simplify if let match

* Clippy: Fix never read variables

Co-authored-by: Max Ammann <max@maxammann.org>
2022-11-12 13:06:43 +00: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
Max Ammann
8db3feb222
Switch back to main wgpu because of new release (wgpu-hal 14.1) (#198) 2022-11-03 08:43:08 +01:00
Max Ammann
1be1476fac
Merge pull request #179 from maxammann/refactor-structure
Refactor structure
2022-11-02 22:07:15 +01:00
Maximilian Ammann
2070339fb6 Fix names and remove unsed functions 2022-11-02 20:57:52 +01:00
Max Ammann
e9d4fcc425
Fix stencil temporarily: https://github.com/gfx-rs/wgpu/pull/3151 (#191) 2022-11-02 20:52:27 +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
8645a506ea Fix compilation issues 2022-10-30 21:09:02 +01:00
Maximilian Ammann
6b1fa188c2 Address some FIXMEs 2022-10-30 20:59:17 +01:00
Maximilian Ammann
92301d005e Add documentation 2022-10-30 20:42:08 +01:00
Maximilian Ammann
58c852f096 Fix imports 2022-10-30 19:57:42 +01:00
Maximilian Ammann
e0f414e804 Fix imports 2022-10-30 19:55:31 +01:00
Max Ammann
5a61862008
Merge branch 'main' into refactor-structure 2022-10-30 18:46:26 +01:00
Maximilian Ammann
6fab04c70f Fix moving the map and resizing 2022-10-30 18:38:49 +01:00
Maximilian Ammann
dc3d6576bc Fix formatting 2022-10-30 18:27:26 +01:00
Max Ammann
ec1ad07164
Use DEPTH32FLOAT_STENCIL8 for metal support (#183)
* Switch to Depth32FloatStencil8 for support on metal. It seems to have better overal support.

* Update formatting

* Fix usage of wrong texture format

* Make depth format configurable

* Force install tools

* Echo path

* Change shell to msys2 for windows
2022-10-24 10:49:37 +02:00
Max Ammann
61232872b2
Merge branch 'main' into refactor-structure 2022-10-23 18:42:39 +02:00
Maximilian Ammann
3cc065aa58 Fix formatting 2022-10-09 12:36:36 +02:00
Maximilian Ammann
a68acbdff3 Upgrade wgpu 2022-10-08 20:56:58 +02: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
c6eadbf2cc Fix compilation issues and cleanup 2022-09-25 16:25:00 +02:00
Maximilian Ammann
4879d9c0b4 Refactor headless module, introduce world 2022-09-25 13:26:35 +02:00
Maximilian Ammann
f8b38dc8f2 Fix imports, refactor builders, invert feature flag 2022-09-25 12:10:30 +02:00
Maximilian Ammann
cc5bb38e46 Fix headless rendering 2022-09-24 17:42:17 +02:00
Maximilian Ammann
8c7a1f32d0 Fix compilation 2022-09-24 16:58:53 +02:00
Maximilian Ammann
a81c818647 Fix tests 2022-09-18 12:30:00 +02:00
Maximilian Ammann
3e1c24e533 Fix formatting 2022-09-17 15:48:41 +02:00
Maximilian Ammann
aa07abb683 Merge branch 'main' into wasm-executor
# Conflicts:
#	maplibre-demo/Cargo.toml
2022-09-17 15:46:04 +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
a66519ccca Introduce AsyncProcedureCall 2022-09-10 11:11:12 +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
Maximilian Ammann
d912975b1e Disable geometry index 2022-09-08 19:42:12 +02:00
karisair
a8f704a31a
Fixes #138 - upgraded tracy-client to 0.14.* and tracing-tracy to 0.10.* (#156)
* Fixes #138 - upgraded tracy-client to 0.14.* and tracing-tracy to 0.10.* as per README

* Convert set_thread_name to a macro (set_thread_name!), to permit non-web tracing.

* Updated docs to briefly explain the connection to tracy and the appropriate crate versions.

Co-authored-by: Max Ammann <max@maxammann.org>
2022-09-08 18:17:22 +02:00