Skip to content

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 ​

cpp
bool enabled

Occlusion-query culling is enabled.

used ​

cpp
bool used

Occlusion queries were issued.

supported ​

cpp
bool supported

Occlusion queries are supported.

hizEnabled ​

cpp
bool hizEnabled

CPU Hi-Z culling is enabled.

hizUsed ​

cpp
bool hizUsed

CPU Hi-Z culling was used.

gpuHizEnabled ​

cpp
bool gpuHizEnabled

GPU Hi-Z culling is enabled.

gpuHizUsed ​

cpp
bool gpuHizUsed

GPU Hi-Z culling was used.

candidates ​

cpp
size_t candidates

Draws considered for occlusion queries.

queries ​

cpp
size_t queries

Occlusion queries issued.

occluded ​

cpp
size_t occluded

Draws rejected as occluded.

drawn ​

cpp
size_t drawn

Candidate draws that were drawn.

hizTests ​

cpp
size_t hizTests

CPU Hi-Z tests.

hizOccluded ​

cpp
size_t hizOccluded

Draws rejected by CPU Hi-Z.

hizDepthReadbacks ​

cpp
size_t hizDepthReadbacks

Depth readbacks for CPU Hi-Z.

hizMipLevels ​

cpp
size_t hizMipLevels

CPU Hi-Z pyramid levels.

gpuHizDrawCalls ​

cpp
size_t gpuHizDrawCalls

Draws culled through GPU Hi-Z.

gpuHizDepthBuilds ​

cpp
size_t gpuHizDepthBuilds

GPU Hi-Z pyramid builds.

gpuHizComputeDepthBuilds ​

cpp
size_t gpuHizComputeDepthBuilds

GPU Hi-Z pyramid builds using compute shaders.

gpuHizRasterDepthBuilds ​

cpp
size_t gpuHizRasterDepthBuilds

GPU Hi-Z pyramid builds using raster passes.

gpuHizMipLevels ​

cpp
size_t gpuHizMipLevels

GPU Hi-Z pyramid levels.

fallbackCode ​

cpp
uint32_t fallbackCode

Reason occlusion queries were not used.

hizFallbackCode ​

cpp
uint32_t hizFallbackCode

Reason CPU Hi-Z was not used.

gpuHizFallbackCode ​

cpp
uint32_t gpuHizFallbackCode

Reason GPU Hi-Z was not used.

RaiSim — physics for robotics and AI.