Add comments

This commit is contained in:
Maximilian Ammann 2022-01-03 10:18:38 +01:00
parent a7cb19975a
commit bbce30bcb7
2 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,8 @@ impl Cache {
struct WorkQueue<T: Send> {
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,
}

View File

@ -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) {
const OFFSET_X: u32 = 2178;
const OFFSET_Y: u32 = 1421;