@@ -365,11 +365,11 @@ fn calculate_src_buffer_binding_size(buffer_size: u64, limits: &wgt::Limits) ->
365365 // We need to choose a binding size that can address all possible sets of 12 contiguous bytes in the buffer taking
366366 // into account that the dynamic offset needs to be a multiple of `min_storage_buffer_offset_alignment`.
367367
368- // Given the know variables: `offset`, `buffer_size`, `alignment` and the rule `offset + 12 <= buffer_size`.
368+ // Given the known variables `offset`, `buffer_size`, `alignment` and the rule `offset + 12 <= buffer_size`:
369369
370370 // Let `chunks = floor(buffer_size / alignment)`.
371371 // Let `chunk` be the interval `[0, chunks]`.
372- // Let `offset = alignment * chunk + r` where `r` is the interval [0, alignment - 4].
372+ // Let `offset = alignment * chunk + r` where `r` is the interval ` [0, alignment - 4]` .
373373 // Let `binding` be the interval `[offset, offset + 12]`.
374374 // Let `aligned_offset = alignment * chunk`.
375375 // Let `aligned_binding` be the interval `[aligned_offset, aligned_offset + r + 12]`.
@@ -381,8 +381,8 @@ fn calculate_src_buffer_binding_size(buffer_size: u64, limits: &wgt::Limits) ->
381381 // pick a larger `binding_size` that satisfies: `last_aligned_offset + binding_size = buffer_size` and
382382 // `binding_size >= min_aligned_binding_size`.
383383
384- // Let `buffer_size = alignment * chunks + sr` where `sr` is the interval [0, alignment - 4].
385- // Let `last_aligned_offset = alignment * (chunks - u)` where `u` is the interval [0, chunks].
384+ // Let `buffer_size = alignment * chunks + sr` where `sr` is the interval ` [0, alignment - 4]` .
385+ // Let `last_aligned_offset = alignment * (chunks - u)` where `u` is the interval ` [0, chunks]` .
386386 // => `binding_size = buffer_size - last_aligned_offset`
387387 // => `binding_size = alignment * chunks + sr - alignment * (chunks - u)`
388388 // => `binding_size = alignment * chunks + sr - alignment * chunks + alignment * u`
0 commit comments