65 HRESULT hr = _query->GetData(&result,
sizeof(result), 0);
73 PStatTimer timer(DXGraphicsStateGuardian9::_wait_occlusion_pcollector);
74 while (hr == S_FALSE) {
75 hr = _query->GetData(&result,
sizeof(result), D3DGETDATA_FLUSH);
83 <<
"occlusion query failed " << D3DERRORSTRING(hr);
virtual void waiting_for_answer()
Requests the graphics engine to expedite the pending answer–the application is now waiting until the ...
virtual int get_num_fragments() const
Returns the number of fragments (pixels) of the specified geometry that passed the depth test.
virtual bool is_answer_ready() const
Returns true if the query's answer is ready, false otherwise.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.