mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 12:41:30 +11:00
add comments for buffer sizes
Co-authored-by: Daniel McNab <36049421+DJMcNab@users.noreply.github.com>
This commit is contained in:
parent
1f7ba765e9
commit
c66e7a270c
|
@ -61,10 +61,13 @@ pub const fn next_multiple_of(val: u32, rhs: u32) -> u32 {
|
||||||
#[derive(Clone, Copy, Debug, Default, Zeroable, Pod)]
|
#[derive(Clone, Copy, Debug, Default, Zeroable, Pod)]
|
||||||
struct BumpAllocators {
|
struct BumpAllocators {
|
||||||
failed: u32,
|
failed: u32,
|
||||||
|
// Sizes of the provided buffers
|
||||||
binning_size: u32,
|
binning_size: u32,
|
||||||
ptcl_size: u32,
|
ptcl_size: u32,
|
||||||
tiles_size: u32,
|
tiles_size: u32,
|
||||||
segments_size: u32,
|
segments_size: u32,
|
||||||
|
// Final needed dynamic size of the buffers. If any of these are larger than the corresponding `_size` element
|
||||||
|
// reallocation needs to occur
|
||||||
binning: u32,
|
binning: u32,
|
||||||
ptcl: u32,
|
ptcl: u32,
|
||||||
tile: u32,
|
tile: u32,
|
||||||
|
|
Loading…
Reference in a new issue