maplibre/platform/
mod.rs

1//! Handles platform specific code. Depending on the compilation target, different
2//! parts of this module are used.
3
4#[cfg(not(target_arch = "wasm32"))]
5pub use noweb::run_multithreaded;
6#[cfg(feature = "trace")]
7pub use noweb::trace;
8#[cfg(not(target_arch = "wasm32"))]
9pub use noweb::ReqwestOffscreenKernelEnvironment;
10
11#[cfg(not(target_arch = "wasm32"))]
12mod noweb;
13
14/// Http client for non-web targets.
15pub mod http_client {
16    #[cfg(not(target_arch = "wasm32"))]
17    pub use super::noweb::http_client::*;
18}
19
20/// Scheduler for non-web targets.
21pub mod scheduler {
22    #[cfg(not(target_arch = "wasm32"))]
23    pub use super::noweb::scheduler::*;
24}
25
26/// Minimum WebGPU buffer size
27///
28/// FIXME: This limit is enforced by WebGL. Actually this makes sense!
29/// FIXME: This can also be achieved by _pad attributes in shader_ffi.rs
30pub const MIN_WEBGL_BUFFER_SIZE: u64 = 32;