| 44 | } |
| 45 | |
| 46 | DepthComplexityAlgorithm chooseDepthComplexityAlgorithm(const std::vector<Primitive*>& primitives) { |
| 47 | if (!haveHardwareOcclusionQueries() && primitives.size() > 40) { |
| 48 | return DepthComplexitySampling; |
| 49 | } |
| 50 | |
| 51 | if (haveHardwareOcclusionQueries() && primitives.size() > 20) { |
| 52 | return OcclusionQuery; |
| 53 | } |
| 54 | |
| 55 | return NoDepthComplexitySampling; |
| 56 | } |
| 57 | |
| 58 | } // unnamed namespace |
| 59 |
no test coverage detected