| 130 | } |
| 131 | |
| 132 | inline bool SampleDataLess(const PGLSampleData &compA, const PGLSampleData &compB) |
| 133 | { |
| 134 | return compA.weight < compB.weight || |
| 135 | (compA.weight == compB.weight && |
| 136 | (compA.pdf < compB.pdf || |
| 137 | (compA.pdf == compB.pdf && (compA.distance < compB.distance || |
| 138 | (compA.distance == compB.distance && |
| 139 | (compA.position.x < compB.position.x || |
| 140 | (compA.position.x == compB.position.x && |
| 141 | (compA.position.y < compB.position.y || |
| 142 | (compA.position.y == compB.position.y && |
| 143 | (compA.position.z < compB.position.z || |
| 144 | (compA.position.z == compB.position.z && |
| 145 | #ifndef PGL_USE_DIRECTION_COMPRESSION |
| 146 | (compA.direction.x < compB.direction.x || |
| 147 | (compA.direction.x == compB.direction.x && |
| 148 | (compA.direction.y < compB.direction.y || (compA.direction.y == compB.direction.y && (compA.direction.z < compB.direction.z))))) |
| 149 | #else |
| 150 | compA.direction.compressed_direction < compB.direction.compressed_direction |
| 151 | #endif |
| 152 | ))))))))))); |
| 153 | } |
| 154 | |
| 155 | inline bool ZeroValueSampleDataEqual(const PGLZeroValueSampleData &compA, const PGLZeroValueSampleData &compB) |
| 156 | { |
nothing calls this directly
no outgoing calls
no test coverage detected