mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:27:04 +02:00
more readable code
This commit is contained in:
parent
0f42dca40b
commit
f44551e957
2 changed files with 5 additions and 2 deletions
|
@ -30,7 +30,7 @@ void RegionState::run(const workload::WorkloadContextPointer& renderContext, con
|
||||||
// inputs[2N + 1] = vector of ids entering region N
|
// inputs[2N + 1] = vector of ids entering region N
|
||||||
//
|
//
|
||||||
// But we only pass inputs for R1 through R3
|
// But we only pass inputs for R1 through R3
|
||||||
assert(inputs.size() == 2 * (int32_t)(Region::R3 + 1));
|
assert(inputs.size() == 2 * RegionState::NUM_REGIONS_TRACKED);
|
||||||
|
|
||||||
// The id's in each vector are sorted in ascending order
|
// The id's in each vector are sorted in ascending order
|
||||||
// because the source vectors are scanned in ascending order.
|
// because the source vectors are scanned in ascending order.
|
||||||
|
|
|
@ -53,8 +53,11 @@ namespace workload {
|
||||||
using Inputs = IndexVectors;
|
using Inputs = IndexVectors;
|
||||||
using JobModel = workload::Job::ModelI<RegionState, Inputs, Config>;
|
using JobModel = workload::Job::ModelI<RegionState, Inputs, Config>;
|
||||||
|
|
||||||
|
// we track Proxies in regions R1 through R3
|
||||||
|
const uint32_t NUM_REGIONS_TRACKED = uint32_t(Region::R3 - Region::R1 + 1);
|
||||||
|
|
||||||
RegionState() {
|
RegionState() {
|
||||||
_state.resize(Region::R3 + 1);
|
_state.resize(NUM_REGIONS_TRACKED);
|
||||||
}
|
}
|
||||||
|
|
||||||
void configure(const Config& config);
|
void configure(const Config& config);
|
||||||
|
|
Loading…
Reference in a new issue