@@ -4201,7 +4201,7 @@ namespace bgfx { namespace d3d12
42014201
42024202 void CommandQueueD3D12::finish (uint64_t _waitFence, bool _finishAll)
42034203 {
4204- while (0 < m_control.available () )
4204+ while (0 < m_control.getNumUsed () )
42054205 {
42064206 consume ();
42074207
@@ -4212,12 +4212,12 @@ namespace bgfx { namespace d3d12
42124212 }
42134213 }
42144214
4215- BX_ASSERT (0 == m_control.available (), " " );
4215+ BX_ASSERT (0 == m_control.getNumUsed (), " " );
42164216 }
42174217
42184218 bool CommandQueueD3D12::tryFinish (uint64_t _waitFence)
42194219 {
4220- if (0 < m_control.available () )
4220+ if (0 < m_control.getNumUsed () )
42214221 {
42224222 if (consume (0 )
42234223 && _waitFence <= m_completedFence)
@@ -6245,7 +6245,7 @@ namespace bgfx { namespace d3d12
62456245
62466246 bool TimerQueryD3D12::update ()
62476247 {
6248- if (0 != m_control.available () )
6248+ if (0 != m_control.getNumUsed () )
62496249 {
62506250 uint32_t idx = m_control.m_read ;
62516251 Query& query = m_query[idx];
@@ -6346,7 +6346,7 @@ namespace bgfx { namespace d3d12
63466346 {
63476347 const uint32_t size = m_control.m_size ;
63486348
6349- for (uint32_t ii = 0 , num = m_control.available (); ii < num; ++ii)
6349+ for (uint32_t ii = 0 , num = m_control.getNumUsed (); ii < num; ++ii)
63506350 {
63516351 OcclusionQueryHandle& handle = m_handle[(m_control.m_read + ii) % size];
63526352 if (handle.idx == _handle.idx )
@@ -7369,7 +7369,7 @@ namespace bgfx { namespace d3d12
73697369 maxGpuLatency = bx::uint32_imax (maxGpuLatency, result.m_pending -1 );
73707370 }
73717371
7372- maxGpuLatency = bx::uint32_imax (maxGpuLatency, m_gpuTimer.m_control .available ()-1 );
7372+ maxGpuLatency = bx::uint32_imax (maxGpuLatency, m_gpuTimer.m_control .getNumUsed ()-1 );
73737373
73747374 const int64_t timerFreq = bx::getHPFrequency ();
73757375
@@ -7558,7 +7558,7 @@ namespace bgfx { namespace d3d12
75587558 , m_pipelineStateCache.getCount ()
75597559 , m_samplerStateCache.getCount ()
75607560 , bindLru.getCount ()
7561- , m_cmd.m_control .available ()
7561+ , m_cmd.m_control .getNumUsed ()
75627562 );
75637563 pos++;
75647564
0 commit comments