add comments for buffer sizes

Co-authored-by: Daniel McNab <36049421+DJMcNab@users.noreply.github.com>
This commit is contained in:
Chad Brokaw 2023-01-17 22:48:53 -05:00 committed by GitHub
parent 1f7ba765e9
commit c66e7a270c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,10 +61,13 @@ pub const fn next_multiple_of(val: u32, rhs: u32) -> u32 {
#[derive(Clone, Copy, Debug, Default, Zeroable, Pod)]
struct BumpAllocators {
failed: u32,
// Sizes of the provided buffers
binning_size: u32,
ptcl_size: u32,
tiles_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,
ptcl: u32,
tile: u32,