20 TypeHandle DXOcclusionQueryContext9::_type_handle;
25 DXOcclusionQueryContext9::
26 ~DXOcclusionQueryContext9() {
40 HRESULT hr = _query->GetData(&result,
sizeof(result), 0);
41 return (hr != S_FALSE);
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 ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A lightweight class that can be used to automatically start and stop a PStatCollector around a sectio...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual bool is_answer_ready() const
Returns true if the query's answer is ready, false otherwise.
TypeHandle is the identifier used to differentiate C++ class types.
virtual int get_num_fragments() const
Returns the number of fragments (pixels) of the specified geometry that passed the depth test.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.