// SPDX-License-Identifier: Apache-2.0 OR MIT OR Unlicense // Bitflags for each stage that can fail allocation. let STAGE_BINNING: u32 = 0x1u; let STAGE_TILE_ALLOC: u32 = 0x2u; let STAGE_PATH_COARSE: u32 = 0x4u; let STAGE_COARSE: u32 = 0x8u; struct BumpAllocators { // Bitmask of stages that have failed allocation. failed: atomic, binning_size: u32, ptcl_size: u32, tiles_size: u32, segments_size: u32, binning: atomic, ptcl: atomic, tile: atomic, segments: atomic, blend: atomic, }