mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Add comments
This commit is contained in:
parent
a7cb19975a
commit
bbce30bcb7
@ -81,6 +81,8 @@ impl Cache {
|
|||||||
|
|
||||||
struct WorkQueue<T: Send> {
|
struct WorkQueue<T: Send> {
|
||||||
inner: Mutex<VecDeque<T>>,
|
inner: Mutex<VecDeque<T>>,
|
||||||
|
/// Condvar is also supported on WASM
|
||||||
|
/// ([see here]( https://github.com/rust-lang/rust/blob/effea9a2a0d501db5722d507690a1a66236933bf/library/std/src/sys/wasm/atomics/condvar.rs))!
|
||||||
cvar: Condvar,
|
cvar: Condvar,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -363,6 +363,8 @@ impl State {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Could we draw inspiration from StagingBelt (https://docs.rs/wgpu/latest/wgpu/util/struct.StagingBelt.html)?
|
||||||
|
// TODO: What is StagingBelt for?
|
||||||
pub fn upload_tile_geometry(&mut self, cache: &Cache) {
|
pub fn upload_tile_geometry(&mut self, cache: &Cache) {
|
||||||
const OFFSET_X: u32 = 2178;
|
const OFFSET_X: u32 = 2178;
|
||||||
const OFFSET_Y: u32 = 1421;
|
const OFFSET_Y: u32 = 1421;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user