gtopt::ApertureChunkResolution struct

Outcome of resolve_aperture_chunk(): the concrete task grouping plus diagnostic flags the caller turns into log lines (kept out of the pure function so it stays constexpr and unit-testable).

Public variables

bool auto_size
int chunk_size
bool invalid_size
bool legacy_size
ApertureChunkMode mode
bool size_ignored

Variable documentation

bool gtopt::ApertureChunkResolution::auto_size

chunked without an explicit K: K came from compute_auto_aperture_chunk_size.

int gtopt::ApertureChunkResolution::chunk_size

Concrete apertures per task, in [1, max_apertures_per_phase] (1 when there are no apertures).

bool gtopt::ApertureChunkResolution::invalid_size

aperture_chunk_size is not a valid encoding (< -1); fell back to the default mode (legacy path) or the auto K (chunked).

bool gtopt::ApertureChunkResolution::legacy_size

The legacy integer aperture_chunk_size (1, -1 or K > 1) selected the mode because aperture_chunk_mode was unset → deprecation.

bool gtopt::ApertureChunkResolution::size_ignored

aperture_chunk_size contradicts the explicit mode and was ignored (e.g. per_scene with aperture_chunk_size = 4).