| 91 | } |
| 92 | |
| 93 | void deserialize(std::istream &stream) |
| 94 | { |
| 95 | stream.read(reinterpret_cast<char *>(&valid), sizeof(valid)); |
| 96 | stream.read(reinterpret_cast<char *>(&initialized), sizeof(initialized)); |
| 97 | distribution.deserialize(stream); |
| 98 | stream.read(reinterpret_cast<char *>(®ionBounds), sizeof(regionBounds)); |
| 99 | stream.read(reinterpret_cast<char *>(®ionPivot), sizeof(regionPivot)); |
| 100 | trainingStatistics.deserialize(stream); |
| 101 | sampleStatistics.deserialize(stream); |
| 102 | #ifdef OPENPGL_RADIANCE_CACHES |
| 103 | outRadianceHist.deserialize(stream); |
| 104 | #endif |
| 105 | stream.read(reinterpret_cast<char *>(&numZeroValueSamples), sizeof(numZeroValueSamples)); |
| 106 | stream.read(reinterpret_cast<char *>(&splitFlag), sizeof(splitFlag)); |
| 107 | } |
| 108 | |
| 109 | bool isValid() const |
| 110 | { |
nothing calls this directly
no outgoing calls
no test coverage detected