raisin::RayraiWindow::ConservativeOcclusionCullingDiagnostics
struct · #include <rayrai/RayraiWindow.hpp>
Diagnostics: occlusion-culling counters of the last scene color pass (see conservativeOcclusionCullingDiagnostics()).
Three paths are reported: hardware occlusion queries, CPU Hi-Z (depth readback) and GPU Hi-Z. *FallbackCode is an internal reason code, 0 when the path was not rejected.
Public attributes
enabled
bool enabledOcclusion-query culling is enabled.
used
bool usedOcclusion queries were issued.
supported
bool supportedOcclusion queries are supported.
hizEnabled
bool hizEnabledCPU Hi-Z culling is enabled.
hizUsed
bool hizUsedCPU Hi-Z culling was used.
gpuHizEnabled
bool gpuHizEnabledGPU Hi-Z culling is enabled.
gpuHizUsed
bool gpuHizUsedGPU Hi-Z culling was used.
candidates
size_t candidatesDraws considered for occlusion queries.
queries
size_t queriesOcclusion queries issued.
occluded
size_t occludedDraws rejected as occluded.
drawn
size_t drawnCandidate draws that were drawn.
hizTests
size_t hizTestsCPU Hi-Z tests.
hizOccluded
size_t hizOccludedDraws rejected by CPU Hi-Z.
hizDepthReadbacks
size_t hizDepthReadbacksDepth readbacks for CPU Hi-Z.
hizMipLevels
size_t hizMipLevelsCPU Hi-Z pyramid levels.
gpuHizDrawCalls
size_t gpuHizDrawCallsDraws culled through GPU Hi-Z.
gpuHizDepthBuilds
size_t gpuHizDepthBuildsGPU Hi-Z pyramid builds.
gpuHizComputeDepthBuilds
size_t gpuHizComputeDepthBuildsGPU Hi-Z pyramid builds using compute shaders.
gpuHizRasterDepthBuilds
size_t gpuHizRasterDepthBuildsGPU Hi-Z pyramid builds using raster passes.
gpuHizMipLevels
size_t gpuHizMipLevelsGPU Hi-Z pyramid levels.
fallbackCode
uint32_t fallbackCodeReason occlusion queries were not used.
hizFallbackCode
uint32_t hizFallbackCodeReason CPU Hi-Z was not used.
gpuHizFallbackCode
uint32_t gpuHizFallbackCodeReason GPU Hi-Z was not used.