HDK
|
#include <RV_Query.h>
Public Member Functions | |
RV_OcclusionQueryCPU (RV_OcclusionResult t=RV_OCCLUSION_NUM_SAMPLES) | |
~RV_OcclusionQueryCPU () override | |
bool | isResultAvailable (RV_Render *r) |
Return true if the query has finished and the result is available. More... | |
bool | getAnySamplesDrawn (RV_Render *r) |
Return true if any samples were drawn. More... | |
int64 | getNumSamples (RV_Render *r) |
Return the exact number of samples drawn. More... | |
Public Member Functions inherited from RV_OcclusionQuery | |
void | init (RV_Render *r) |
Initialize the query (create it) More... | |
bool | begin (RV_Render *r) |
Start the query. More... | |
void | end (RV_Render *r) |
End the query. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from RV_OcclusionQuery | |
exint | sumQueries (RV_Render *r, bool wait=false) |
RV_OcclusionQuery (RV_OcclusionResult t, bool gpu_exclusive) | |
virtual | ~RV_OcclusionQuery () |
Protected Attributes inherited from RV_OcclusionQuery | |
UT_UniquePtr< RV_VKQuery > | myQuery |
int | myCurIdx |
int | myCurResult |
bool | myIsBoolean |
bool | myIsGPUOnly |
Query to get occlusion results on the CPU – useful for Debugging more performant code should use the GPU version (RV_OcclusionQueryGPU) and use conditional rendering in the command buffer
Definition at line 62 of file RV_Query.h.
RV_OcclusionQueryCPU::RV_OcclusionQueryCPU | ( | RV_OcclusionResult | t = RV_OCCLUSION_NUM_SAMPLES | ) |
|
override |
bool RV_OcclusionQueryCPU::getAnySamplesDrawn | ( | RV_Render * | r | ) |
Return true if any samples were drawn.
Return the exact number of samples drawn.
bool RV_OcclusionQueryCPU::isResultAvailable | ( | RV_Render * | r | ) |
Return true if the query has finished and the result is available.